Skip to content

Commit 14fd81f

Browse files
authoredJun 12, 2024··
Adding missing synchronization in the runnable that is causing access guard violation error. (#11277)
1 parent 7fee6a3 commit 14fd81f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎binder/src/main/java/io/grpc/binder/internal/BinderTransport.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ final void shutdownInternal(Status shutdownStatus, boolean forceTerminate) {
327327
inbound.closeAbnormal(shutdownStatus);
328328
}
329329
}
330-
notifyTerminated();
330+
synchronized (this) {
331+
notifyTerminated();
332+
}
331333
releaseExecutors();
332334
});
333335
}

0 commit comments

Comments
 (0)
Please sign in to comment.