Skip to content

Commit

Permalink
Fix badarity error when the changes timeout is undefined or set to in…
Browse files Browse the repository at this point in the history
…finity.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@998898 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fdmanana committed Sep 20, 2010
1 parent 83bc042 commit f2cfb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/couchdb/couch_changes.erl
Expand Up @@ -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}
Expand Down

0 comments on commit f2cfb2f

Please sign in to comment.