mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-13 17:28:06 +07:00
Changed disconnect on error to call ChannelHandlerContext#close()
This commit is contained in:
@ -162,7 +162,7 @@ public class Main extends ApplicationAdapter implements PacketProcessor {
|
|||||||
assert id != MAX_CLIENTS : "no available client slots. connection limiter should have caught this";
|
assert id != MAX_CLIENTS : "no available client slots. connection limiter should have caught this";
|
||||||
if (id == MAX_CLIENTS) {
|
if (id == MAX_CLIENTS) {
|
||||||
Gdx.app.error(TAG, " " + "client connected, but no slot is available");
|
Gdx.app.error(TAG, " " + "client connected, but no slot is available");
|
||||||
ctx.channel().close(); // TODO: does this work on a UDP? (connectionless)
|
ctx.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user