mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-03 18:13:08 -04:00
Added client disconnect when server shuts down
This commit is contained in:
@@ -76,8 +76,11 @@ public class NetworkClientManager extends Manager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean terminate() {
|
||||
return super.terminate();
|
||||
public boolean stop() {
|
||||
for (NetworkClient client : networkClients.values()) {
|
||||
client.sendPacket(new Disconnect(client.getConnectionId(), DisconnectReason.APPLICATION));
|
||||
}
|
||||
return super.stop();
|
||||
}
|
||||
|
||||
public void onIntentReceived(Intent i) {
|
||||
|
||||
Reference in New Issue
Block a user