diff Implab/AbstractPromise.cs @ 186:75103928da09 ref20160224

working on cancelation and error handling
author cin
date Tue, 19 Apr 2016 00:50:14 +0300
parents 97fbbf816844
children 86187b01c4e0
line wrap: on
line diff
--- a/Implab/AbstractPromise.cs	Mon Apr 18 16:41:17 2016 +0300
+++ b/Implab/AbstractPromise.cs	Tue Apr 19 00:50:14 2016 +0300
@@ -134,8 +134,8 @@
         }
 
         protected void SetResult() {
-            BeginSetResult();
-            EndSetResult();
+            if(BeginSetResult())
+                EndSetResult();
         }
     }
 }