Close connections immediately on kick
This commit is contained in:
@@ -49,7 +49,7 @@ public abstract class NetConnection{
|
|||||||
|
|
||||||
Call.kick(this, reason);
|
Call.kick(this, reason);
|
||||||
|
|
||||||
Time.runTask(2f, this::close);
|
close();
|
||||||
|
|
||||||
netServer.admins.save();
|
netServer.admins.save();
|
||||||
kicked = true;
|
kicked = true;
|
||||||
@@ -70,7 +70,7 @@ public abstract class NetConnection{
|
|||||||
|
|
||||||
Call.kick(this, reason);
|
Call.kick(this, reason);
|
||||||
|
|
||||||
Time.runTask(2f, this::close);
|
close();
|
||||||
|
|
||||||
netServer.admins.save();
|
netServer.admins.save();
|
||||||
kicked = true;
|
kicked = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user