diff Implab/Components/PollingComponent.cs @ 262:f1696cdc3d7a v3 v3.0.8

Added IInitializable.Initialize() overload Added IRunnable.Start(), IRunnable.Start() overloads Fixed cancellation of the current operation when Stop() is called More tests
author cin
date Mon, 16 Apr 2018 02:12:39 +0300
parents 547a2fc0d93e
children
line wrap: on
line diff
--- a/Implab/Components/PollingComponent.cs	Fri Apr 13 19:15:11 2018 +0300
+++ b/Implab/Components/PollingComponent.cs	Mon Apr 16 02:12:39 2018 +0300
@@ -49,7 +49,8 @@
             m_cancellation.Cancel();
             try {
                 // await for pending poll
-                await m_poll;
+                if (m_poll != null)
+                    await m_poll;
             } catch (OperationCanceledException) {
                 // OK
             }