mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
fix correct handling of exceptions in handling thread
This commit is contained in:
parent
db183bc7c0
commit
652fdbfc43
@ -136,8 +136,8 @@ public class Connection {
|
|||||||
Thread handleThread = new Thread(() -> {
|
Thread handleThread = new Thread(() -> {
|
||||||
while (getConnectionState() != ConnectionState.DISCONNECTED) {
|
while (getConnectionState() != ConnectionState.DISCONNECTED) {
|
||||||
while (handlingQueue.size() > 0) {
|
while (handlingQueue.size() > 0) {
|
||||||
handlingQueue.get(0).log();
|
|
||||||
try {
|
try {
|
||||||
|
handlingQueue.get(0).log();
|
||||||
handlingQueue.get(0).handle(getHandler());
|
handlingQueue.get(0).handle(getHandler());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user