Skip to content

Commit

Permalink
fix: Close based on whether connection is active, not status variable (
Browse files Browse the repository at this point in the history
  • Loading branch information
gnanda authored Aug 16, 2022
1 parent 449353b commit ce7f3e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ private void waitForDoneCallback(long duration, TimeUnit timeUnit) {
while (System.nanoTime() <= deadline) {
this.lock.lock();
try {
if (connectionFinalStatus != null) {
if (!this.streamConnectionIsConnected) {
// Done callback is received, return.
return;
}
Expand Down

0 comments on commit ce7f3e0

Please sign in to comment.