Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (client != null && disposing && Game1.client != client)
     {
         Multiplayer.LogDisconnect(Multiplayer.IsTimeout(client.pendingDisconnect) ? Multiplayer.DisconnectType.Timeout_FarmhandSelection : Multiplayer.DisconnectType.ExitedToMainMenu_FromFarmhandSelect);
         client.disconnect();
     }
     base.Dispose(disposing);
 }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     if (client != null && disposing && Game1.client != client)
     {
         Multiplayer.LogDisconnect(Multiplayer.IsTimeout(client.pendingDisconnect) ? Multiplayer.DisconnectType.Timeout_FarmhandSelection : Multiplayer.DisconnectType.ExitedToMainMenu_FromFarmhandSelect);
         client.disconnect();
         if (!Game1.game1.IsMainInstance)
         {
             GameRunner.instance.RemoveGameInstance(Game1.game1);
         }
     }
     base.Dispose(disposing);
 }