core: Add missed internal comment about idle mode workaround

This should have been included in #8746 but wasn't.
This commit is contained in:
Eric Anderson 2022-06-06 09:34:33 -07:00 committed by GitHub
parent c48b01a46c
commit 9a09021897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ final class ManagedChannelImpl extends ManagedChannel implements
@Override
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) {
return;
}