diff Implab/Promise.cs @ 32:8eca2652d2ff

fixed: StackOverflow in IPromiseBase.Then(handler) fixed: hang in ChainMap method on empty arrays
author cin
date Tue, 08 Apr 2014 23:25:01 +0400
parents 2fad2d1f4b03
children b255e4aeef17
line wrap: on
line diff
--- a/Implab/Promise.cs	Mon Apr 07 18:17:00 2014 +0400
+++ b/Implab/Promise.cs	Tue Apr 08 23:25:01 2014 +0400
@@ -236,7 +236,7 @@
 
         public IPromiseBase Then(Action success)
         {
-            return Then(success);
+            return Then(x => success());
         }
 
         /// <summary>