mirror of https://github.com/grpc/grpc-java.git
core: Add missed internal comment about idle mode workaround
This should have been included in #8746 but wasn't.
This commit is contained in:
parent
c48b01a46c
commit
9a09021897
|
|
@ -349,6 +349,9 @@ final class ManagedChannelImpl extends ManagedChannel implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
// Workaround timer scheduled while in idle mode. This can happen from handleNotInUse() after
|
||||||
|
// an explicit enterIdleMode() by the user. Protecting here as other locations are a bit too
|
||||||
|
// subtle to change rapidly to resolve the channel panic. See #8714
|
||||||
if (lbHelper == null) {
|
if (lbHelper == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue