Skip to content

Commit

Permalink
Finish cleaning up after a disposed stub by calling the correct metho…
Browse files Browse the repository at this point in the history
…d. Bug was introduced with change #1a1e0499f1ea3c3499996c7ba009e659a20b468e
  • Loading branch information
broneill committed Feb 6, 2025
1 parent a176307 commit ab255d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private <T extends Throwable> void restore(StubInvoker stub, Class<T> remoteFail
.compareAndExchange(stub, this, newSupport);
if (result != newSupport && result instanceof DisposedStubSupport) {
// Locally dispose the restored stub.
dispose(stub);
mNewSupport.session().stubDispose(stub);
}
return;
} catch (RuntimeException | Error e) {
Expand Down

0 comments on commit ab255d5

Please sign in to comment.