aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-04-30 17:04:55 +0200
committerLoïc Hoguin <[email protected]>2017-04-30 17:04:55 +0200
commit64009f92438bc658e298ae486234b5b1e5fed541 (patch)
treea870de10ef3ffccb0aa97b4be56b5cd68cf61e31 /src/gun.erl
parentfb05af363a18d6618f1f73bdf092f6652f099c85 (diff)
downloadgun-64009f92438bc658e298ae486234b5b1e5fed541.tar.gz
gun-64009f92438bc658e298ae486234b5b1e5fed541.tar.bz2
gun-64009f92438bc658e298ae486234b5b1e5fed541.zip
Fix retry_timeout value check
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun.erl b/src/gun.erl
index c5fbbc5..011190c 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -167,7 +167,7 @@ check_options([Opt = {protocols, L}|Opts]) when is_list(L) ->
end;
check_options([{retry, R}|Opts]) when is_integer(R), R >= 0 ->
check_options(Opts);
-check_options([{retry_timeout, T}|Opts]) when is_integer(T) > 0 ->
+check_options([{retry_timeout, T}|Opts]) when is_integer(T), T >= 0 ->
check_options(Opts);
check_options([{spdy_opts, ProtoOpts}|Opts]) when is_map(ProtoOpts) ->
case gun_spdy:check_options(ProtoOpts) of