Skip to content

Instantly share code, notes, and snippets.

@siniypin
Last active March 9, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siniypin/a20f0cf37bfb7cbc24b9 to your computer and use it in GitHub Desktop.
Save siniypin/a20f0cf37bfb7cbc24b9 to your computer and use it in GitHub Desktop.
How do you tell a server went down
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