Skip to content

Commit

Permalink
core: fix race condition in idleTimer & ManagedChannel#enterIdle
Browse files Browse the repository at this point in the history
  • Loading branch information
dapengzhang0 committed Dec 16, 2021
1 parent d50b704 commit 736b398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/io/grpc/internal/ManagedChannelImpl.java
Expand Up @@ -349,6 +349,9 @@ private class IdleModeTimer implements Runnable {

@Override
public void run() {
if (lbHelper == null) {
return;
}
enterIdleMode();
}
}
Expand Down

0 comments on commit 736b398

Please sign in to comment.