Skip to content

Commit

Permalink
fix: Add missing monitor from startSubscriber. (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Jun 16, 2020
1 parent bcfd538 commit d2a90d8
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -107,7 +107,9 @@ public void failed(State from, Throwable failure) {

@Override
public void terminated(State from) {
stoppingSubscribers.remove(subscriber);
try (CloseableMonitor.Hold h = monitor.enter()) {
stoppingSubscribers.remove(subscriber);
}
}
},
MoreExecutors.directExecutor());
Expand Down

0 comments on commit d2a90d8

Please sign in to comment.