diff Implab/Components/PollingComponent.cs @ 208:7d07503621fe v2

RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool) IRunnable is now disposable Code cleanups, suppressed some CodeAnalysis warnings
author cin
date Sun, 13 Nov 2016 18:28:17 +0300
parents 8200ab154c8a
children
line wrap: on
line diff
--- a/Implab/Components/PollingComponent.cs	Wed Nov 09 12:03:22 2016 +0300
+++ b/Implab/Components/PollingComponent.cs	Sun Nov 13 18:28:17 2016 +0300
@@ -144,11 +144,11 @@
             return base.OnStop();
         }
 
-        protected override void Dispose(bool disposing, Exception lastError) {
+        protected override void Dispose(bool disposing) {
             if (disposing)
-                Safe.Dispose(m_timer);
+                m_timer.Dispose();
             
-            base.Dispose(disposing, lastError);
+            base.Dispose(disposing);
         }
     }
 }