diff Implab/Promise.cs @ 105:4d308952fd5e v2

minor fixes
author cin
date Mon, 10 Nov 2014 10:17:54 +0300
parents 5f10d54b45df
children d4e38929ce36
line wrap: on
line diff
--- a/Implab/Promise.cs	Sun Nov 09 23:03:45 2014 +0300
+++ b/Implab/Promise.cs	Mon Nov 10 10:17:54 2014 +0300
@@ -893,7 +893,7 @@
 
 
         void IPromise.On(Action success, Action<Exception> error, Action cancel) {
-            On(x => success(), error, cancel);
+            On(success != null ? new Action<T>(x => success()) : null, error, cancel);
         }
 
         void IPromise.On(Action success, Action<Exception> error) {