mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Remove idle timeout from websocket-based remote debugger
This commit is contained in:
parent
7b4a7fc471
commit
9535d024e4
|
@ -76,6 +76,7 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
|
|||
}
|
||||
} else {
|
||||
suspended = false;
|
||||
callStack = null;
|
||||
for (JavaScriptDebuggerListener listener : getListeners()) {
|
||||
listener.detached();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user