mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-20 20:55:49 +00:00
ChromeWindow: Ignore events once we've requested the window be closed
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user