private void KickUserHandler(Packet packet, Simulator simulator)
{
string message = Utils.BytesToString(((KickUserPacket)packet).UserInfo.Reason);
// Fire the callback to let client apps know we are shutting down
if (OnDisconnected != null)
{
try { OnDisconnected(DisconnectType.ServerInitiated, message); }
catch (Exception e) { Logger.Log(e.Message, Helpers.LogLevel.Error, Client, e); }
}
// Shutdown the network layer
Shutdown(DisconnectType.ServerInitiated);
}