mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 07:20:04 -04:00
handle exceptions in handling thread
This commit is contained in:
parent
3ca32b7e07
commit
cc8cd101f0
@ -19,6 +19,7 @@ import org.json.JSONObject;
|
||||
|
||||
public class ChatComponent {
|
||||
JSONObject json;
|
||||
//ToDo
|
||||
|
||||
public ChatComponent(String raw) {
|
||||
try {
|
||||
|
@ -137,7 +137,11 @@ public class Connection {
|
||||
while (getConnectionState() != ConnectionState.DISCONNECTED) {
|
||||
while (handlingQueue.size() > 0) {
|
||||
handlingQueue.get(0).log();
|
||||
handlingQueue.get(0).handle(getHandler());
|
||||
try {
|
||||
handlingQueue.get(0).handle(getHandler());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
handlingQueue.remove(0);
|
||||
}
|
||||
Util.sleep(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user