This commit is contained in:
地平线
2015-09-23 17:49:05 +08:00
parent 44e02c1acc
commit 23605d2b74

View File

@@ -228,7 +228,9 @@ public class WebSocketRunner implements Runnable {
} }
} }
public synchronized void closeRunner() { public void closeRunner() {
if (closed) return;
synchronized (this) {
if (closed) return; if (closed) return;
closed = true; closed = true;
try { try {
@@ -246,6 +248,7 @@ public class WebSocketRunner implements Runnable {
} }
webSocket.onClose(0, null); webSocket.onClose(0, null);
} }
}
private static final class Masker { private static final class Masker {