ChromeWindow: Ignore events once we've requested the window be closed

This commit is contained in:
Alex Osborne
2022-04-08 12:25:30 +09:00
parent e5d8d53993
commit adc68583cc
@@ -86,6 +86,7 @@ public class ChromeWindow implements Closeable {
}
private void handleEvent(JSONObject message) {
if (closed) return;
// Run event handlers on a different thread so we don't block the websocket receiving thread.
// That would cause a deadlock if an event handler itself made an RPC call as the response could
// never be processed.