Kenric Nugteren преди 2 години
родител
ревизия
a7c2b81c56
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      prs.server/Engines/GPS/OEMConnection.cs

+ 2 - 3
prs.server/Engines/GPS/OEMConnection.cs

@@ -379,10 +379,9 @@ namespace PRSServer
                     }
                 }
             }, TokenSource.Token);
+            
 
-            // Essentially to make sure that OEM isn't losing threads on us (or that we're missing messages).
-            // The hunch is that this shouldn't happen.
-            // Basically, delay for 15 seconds, and if we still haven't got data, make a note.
+            // After 15 seconds, close the connection (but only if it has been confirmed).
             var delay = Task.Delay(15_000).ContinueWith(t =>
             {
                 if (!readData)