Skip to content

Commit

Permalink
fix: Respect lock annotations in RetryingConnection (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Jun 8, 2021
1 parent 587c91c commit d583623
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ class RetryingConnectionImpl<

@Override
protected void doStart() {
StreamRequestT initialInitialRequest;
try (CloseableMonitor.Hold h = connectionMonitor.enter()) {
initialInitialRequest = lastInitialRequest;
}
SystemExecutors.getAlarmExecutor()
.execute(
() -> {
reinitialize(lastInitialRequest);
reinitialize(initialInitialRequest);
notifyStarted();
});
}
Expand Down

0 comments on commit d583623

Please sign in to comment.