Try to fix some stuff with websocket

This commit is contained in:
2023-03-16 12:29:43 +01:00
parent fdfb67757f
commit 2fb4775ca7
2 changed files with 5 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ public abstract class AbstractClientWS implements AbstractWS {
public final void sendClose(int code, String reason) throws IOException {
synchronized (socket) {
autoReconnect = false; // if we ask for closing connection, dont reconnect automatically
socket.get().sendClose(code, reason);
socket.get().sendClose(code, reason).join();
}
}