fix correct handling of exceptions in handling thread

This commit is contained in:
bixilon 2020-06-07 00:42:25 +02:00
parent db183bc7c0
commit 652fdbfc43
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -136,8 +136,8 @@ public class Connection {
Thread handleThread = new Thread(() -> {
while (getConnectionState() != ConnectionState.DISCONNECTED) {
while (handlingQueue.size() > 0) {
handlingQueue.get(0).log();
try {
handlingQueue.get(0).log();
handlingQueue.get(0).handle(getHandler());
} catch (Exception e) {
e.printStackTrace();