Ejemplo n.º 1
0
 /// <summary>
 /// Unhandled exceptions, try to gracefully stop the master server
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     MasterServer.Log("CRITICAL: {0}", (e.ExceptionObject as Exception).Message);
     MasterServer.Log("CRITICAL: {0}", (e.ExceptionObject as Exception).StackTrace);
     MasterServer.Stop();
 }