Adding missing synchronization in the runnable that is causing access guard violation error. (#11277)

This commit is contained in:
Kannan J 2024-06-12 11:09:59 +05:30 committed by GitHub
parent 7fee6a3fea
commit 14fd81f59b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,9 @@ public abstract class BinderTransport
inbound.closeAbnormal(shutdownStatus); inbound.closeAbnormal(shutdownStatus);
} }
} }
notifyTerminated(); synchronized (this) {
notifyTerminated();
}
releaseExecutors(); releaseExecutors();
}); });
} }