GUAC-1427: Do not invoke createTunnel() within WebSocket tunnels unless close() is guaranteed to eventually run.

This commit is contained in:
Michael Jumper
2015-12-10 18:31:38 -08:00
parent f1090ac977
commit df385a1a64
5 changed files with 82 additions and 57 deletions

View File

@@ -207,6 +207,10 @@ public abstract class GuacamoleWebSocketTunnelEndpoint extends Endpoint {
@OnMessage
public void onMessage(String message) {
// Ignore inbound messages if there is no associated tunnel
if (tunnel == null)
return;
GuacamoleWriter writer = tunnel.acquireWriter();
try {