unknown events will be catched and no longer break the whole client (f.e. on teaspeak servers)
This commit is contained in:
+5
-1
@@ -433,9 +433,13 @@ public class LocalTeamspeakClientSocket
|
|||||||
if (processor != null) {
|
if (processor != null) {
|
||||||
processor.process(client, singleCommand);
|
processor.process(client, singleCommand);
|
||||||
} else if (singleCommand.getName().startsWith("notify")) {
|
} else if (singleCommand.getName().startsWith("notify")) {
|
||||||
|
try {
|
||||||
TS3Event event = TS3Event.createEvent(singleCommand);
|
TS3Event event = TS3Event.createEvent(singleCommand);
|
||||||
|
|
||||||
commandExecutionService.submit(() -> listeners.forEach(event::fire));
|
commandExecutionService.submit(() -> listeners.forEach(event::fire));
|
||||||
|
} catch (IllegalArgumentException exception) {
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
CommandProcessor awaitingCommandProcessor;
|
CommandProcessor awaitingCommandProcessor;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user