diff --git a/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java b/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java index 9cb2202fe..3738c7a5a 100644 --- a/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java +++ b/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebugger.java @@ -76,6 +76,7 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC } } else { suspended = false; + callStack = null; for (JavaScriptDebuggerListener listener : getListeners()) { listener.detached(); } diff --git a/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebuggerEndpoint.java b/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebuggerEndpoint.java index bd43e0d2c..e57263a1a 100644 --- a/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebuggerEndpoint.java +++ b/teavm-chrome-rdp/src/main/java/org/teavm/chromerdp/ChromeRDPDebuggerEndpoint.java @@ -18,10 +18,7 @@ package org.teavm.chromerdp; import java.io.IOException; import java.util.ArrayList; import java.util.List; -import javax.websocket.OnClose; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; +import javax.websocket.*; import javax.websocket.server.ServerEndpoint; /** @@ -37,6 +34,7 @@ public class ChromeRDPDebuggerEndpoint implements ChromeRDPExchange { @OnOpen public void open(Session session) { this.session = session; + session.setMaxIdleTimeout(0); Object debugger = session.getUserProperties().get("chrome.rdp"); if (debugger instanceof ChromeRDPExchangeConsumer) { this.debugger = (ChromeRDPExchangeConsumer)debugger;