Просмотр исходного кода

Merge pull request #848 from BDisp/operation-canceled-exception

Fixes #847. Since the timeout issue are fixed there is no need to use tokenSource.Cancel but just reset the eventReady.
Charlie Kindel 5 лет назад
Родитель
Сommit
3477e97b84
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

+ 3 - 3
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -628,9 +628,9 @@ namespace Terminal.Gui {
 
 		void IMainLoopDriver.Wakeup ()
 		{
-			tokenSource.Cancel ();
-			//eventReady.Reset ();
-			//eventReady.Set ();
+			//tokenSource.Cancel ();
+			eventReady.Reset ();
+			eventReady.Set ();
 		}
 
 		bool IMainLoopDriver.EventsPending (bool wait)