mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Catching everything in Worker's selector (#1207)
This commit is contained in:
parent
10a2967f33
commit
90fa4e46ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user