Explorar el Código

Removed thread.abort

Kenric Nugteren hace 2 años
padre
commit
3e7ca7cf17
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      prs.server/Engines/GPS/GPSListener.cs

+ 5 - 1
prs.server/Engines/GPS/GPSListener.cs

@@ -443,7 +443,11 @@ namespace PRSServer
                 m_clientListenerThread.Join(1000);
 
                 // If still alive; Get rid of the thread.
-                if (m_clientListenerThread.IsAlive) m_clientListenerThread.Abort();
+                if (m_clientListenerThread.IsAlive)
+                {
+                    Logger.Send(LogType.Error, "", "Thread didn't die in time.");
+                }
+                    //m_clientListenerThread.Abort();
                 m_clientListenerThread = null;
                 m_clientSocket = null;
                 m_markedForDeletion = true;