Catching everything in Worker's selector (#1207)

This commit is contained in:
Konstantin Shandurenko 2022-07-06 02:27:24 +03:00 committed by GitHub
parent 10a2967f33
commit 90fa4e46ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,8 @@ public final class Worker extends MinestomThread {
} catch (IOException e) {
// TODO print exception? (should ignore disconnection)
connection.disconnect();
} catch (IllegalArgumentException e) {
MinecraftServer.getExceptionManager().handleException(e);
} catch (Throwable t) {
MinecraftServer.getExceptionManager().handleException(t);
connection.disconnect();
}
}, MinecraftServer.TICK_MS);