mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-10 07:48:29 -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 {
|
public class ChatComponent {
|
||||||
JSONObject json;
|
JSONObject json;
|
||||||
|
//ToDo
|
||||||
|
|
||||||
public ChatComponent(String raw) {
|
public ChatComponent(String raw) {
|
||||||
try {
|
try {
|
||||||
|
@ -137,7 +137,11 @@ public class Connection {
|
|||||||
while (getConnectionState() != ConnectionState.DISCONNECTED) {
|
while (getConnectionState() != ConnectionState.DISCONNECTED) {
|
||||||
while (handlingQueue.size() > 0) {
|
while (handlingQueue.size() > 0) {
|
||||||
handlingQueue.get(0).log();
|
handlingQueue.get(0).log();
|
||||||
handlingQueue.get(0).handle(getHandler());
|
try {
|
||||||
|
handlingQueue.get(0).handle(getHandler());
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
handlingQueue.remove(0);
|
handlingQueue.remove(0);
|
||||||
}
|
}
|
||||||
Util.sleep(1);
|
Util.sleep(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user