Browse Source

Removed thread.abort

Kenric Nugteren 2 years ago
parent
commit
3e7ca7cf17
1 changed files with 5 additions and 1 deletions
  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;