mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Fixed empty logout bug
This commit is contained in:
@@ -134,8 +134,12 @@ public class ConnectionService extends Service {
|
||||
GalacticPacketIntent gpi = (GalacticPacketIntent) i;
|
||||
Player p = gpi.getPlayerManager().getPlayerFromNetworkId(gpi.getNetworkId());
|
||||
if (p != null) {
|
||||
logOut(p);
|
||||
disconnect(p, DisconnectReason.OTHER_SIDE_TERMINATED);
|
||||
if (p.getPlayerState() != PlayerState.DISCONNECTED) {
|
||||
logOut(p);
|
||||
disconnect(p, DisconnectReason.TIMEOUT);
|
||||
} else {
|
||||
disconnect(p, DisconnectReason.OTHER_SIDE_TERMINATED);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user