Various code simplification/fixes and a lot of typo/grammar fixes (may brake some stuff)

This commit is contained in:
2023-06-20 00:15:46 +02:00
parent c984b63cee
commit 5edd8cdfec
151 changed files with 909 additions and 983 deletions

View File

@@ -188,9 +188,9 @@ public abstract class AbstractClientWS implements AbstractWS {
}
@Override
public final void sendClose(int code, String reason) throws IOException {
public final void sendClose(int code, String reason) {
synchronized (socket) {
autoReconnect = false; // if we ask for closing connection, dont reconnect automatically
autoReconnect = false; // if we ask for closing connection, don't reconnect automatically
WebSocket ws = socket.get();
if (ws != null)
ws.sendClose(code, reason).join();

View File

@@ -70,7 +70,7 @@ public abstract class KeyProtectedClientWS extends AbstractClientWS {
}
/**
* Called when this Websocket is succesfully logged in to the server.
* Called when this Websocket is successfully logged in to the server.
*/
public abstract void onLoginSucceed();