summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-09-20 11:46:48 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-09-20 11:46:48 +0000
commitf2cfb2fae3f0decab8485272cc939bc7821fc5a1 (patch)
tree7930384d8bf3e643caea0347d0c08ec008649dc7 /src
parent83bc0427cf355d76e0580cdd5b7d5369d69b6c2e (diff)
Fix badarity error when the changes timeout is undefined or set to infinity.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@998898 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_changes.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_changes.erl b/src/couchdb/couch_changes.erl
index 78e730b5..dd884cad 100644
--- a/src/couchdb/couch_changes.erl
+++ b/src/couchdb/couch_changes.erl
@@ -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}