Simulators.get(i).Disconnect(sendCloseCircuit);
// Fire the SimDisconnected event if a handler is registered
if (OnSimDisconnected != null)
{
OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(Simulators.get(i), type));
}
}
}
Simulators.clear();
}
if (getCurrentSim() != null)
{
// Kill the connection to the curent simulator
getCurrentSim().Disconnect(sendCloseCircuit);
// Fire the SimDisconnected event if a handler is registered
if (OnSimDisconnected != null)
{
OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(getCurrentSim(), type));
}
}
// Clear out all of the packets that never had time to process
// PacketInbox.Close();