Last active
March 9, 2016 16:29
-
-
Save siniypin/a20f0cf37bfb7cbc24b9 to your computer and use it in GitHub Desktop.
How do you tell a server went down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void ua_Log(object sender, LogEventArgs e) | |
{ | |
if (e.Data.Contains("TCP transport destroyed with reason 70016: End of file (PJ_EEOF)")) | |
{ | |
System.Console.WriteLine("SNAP, SERVER WENT DOWN"); | |
ua.AccountManager.Accounts.All(x => x.Unregister()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment