Don't mind me...

This commit is contained in:
Manevolent
2018-09-17 23:01:25 -04:00
parent ec34b59ad3
commit 127ae9bc8f
3 changed files with 10 additions and 6 deletions
@@ -2,6 +2,7 @@ package com.github.manevolent.ts3j.protocol.packet.handler;
import com.github.manevolent.ts3j.command.Command;
import com.github.manevolent.ts3j.protocol.Packet;
import com.github.manevolent.ts3j.protocol.client.ClientConnectionState;
import com.github.manevolent.ts3j.protocol.socket.client.TeamspeakClientSocket;
import java.io.IOException;
@@ -14,10 +15,16 @@ public abstract class PacketHandler {
this.clientSocket = clientSocket;
}
public void handleConnectionStateChanging(ClientConnectionState clientConnectionState) {
}
public void onUnassigning() throws IOException {
}
public void onAssigned() throws IOException, TimeoutException {
}
@@ -14,10 +14,6 @@ public abstract class LocalClientHandler extends PacketHandler {
this.client = client;
}
public void handleConnectionStateChanging(ClientConnectionState clientConnectionState) {
}
public LocalTeamspeakClientSocket getClient() {
return client;
}
@@ -195,8 +195,9 @@ public abstract class AbstractTeamspeakClientSocket
PacketHandler handler = getHandler();
if (handler != null)
((LocalClientHandler) handler).handleConnectionStateChanging(state);
if (handler != null ) {
handler.handleConnectionStateChanging(state);
}
Class<? extends PacketHandler> handlerClass = getHandlerClass(state);