public override void disconnect(bool neatly = true) { if (client != null) { Console.WriteLine("Disconnecting from server {0}", lobbyId); client.Close(); client = null; connectionMessage = null; } }
public override void stopServer() { Console.WriteLine("Stopping Galaxy server"); server.Close(); if (galaxyPersonaDataChangedListener != null) { galaxyPersonaDataChangedListener.Dispose(); galaxyPersonaDataChangedListener = null; } }