mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +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) {
|
} catch (IOException e) {
|
||||||
// TODO print exception? (should ignore disconnection)
|
// TODO print exception? (should ignore disconnection)
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (Throwable t) {
|
||||||
MinecraftServer.getExceptionManager().handleException(e);
|
MinecraftServer.getExceptionManager().handleException(t);
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
}
|
}
|
||||||
}, MinecraftServer.TICK_MS);
|
}, MinecraftServer.TICK_MS);
|
||||||
|
Loading…
Reference in New Issue
Block a user