Various code simplification/fixes and a lot of typo/grammar fixes (may brake some stuff)
This commit is contained in:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user