couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r998898 - /couchdb/trunk/src/couchdb/couch_changes.erl
Date Mon, 20 Sep 2010 11:46:49 GMT
Author: fdmanana
Date: Mon Sep 20 11:46:48 2010
New Revision: 998898

URL: http://svn.apache.org/viewvc?rev=998898&view=rev
Log:
Fix badarity error when the changes timeout is undefined or set to infinity.

Modified:
    couchdb/trunk/src/couchdb/couch_changes.erl

Modified: couchdb/trunk/src/couchdb/couch_changes.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_changes.erl?rev=998898&r1=998897&r2=998898&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_changes.erl (original)
+++ couchdb/trunk/src/couchdb/couch_changes.erl Mon Sep 20 11:46:48 2010
@@ -133,9 +133,9 @@ get_changes_timeout(Args, Callback) ->
     undefined ->
         case Timeout of
         undefined ->
-            {DefaultTimeout, fun() -> stop end};
+            {DefaultTimeout, fun(UserAcc) -> {stop, UserAcc} end};
         infinity ->
-            {infinity, fun() -> stop end};
+            {infinity, fun(UserAcc) -> {stop, UserAcc} end};
         _ ->
             {lists:min([DefaultTimeout, Timeout]),
                 fun(UserAcc) -> {stop, UserAcc} end}



Mime
View raw message