diff options
author | Loïc Hoguin <[email protected]> | 2017-04-30 17:04:55 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-04-30 17:04:55 +0200 |
commit | 64009f92438bc658e298ae486234b5b1e5fed541 (patch) | |
tree | a870de10ef3ffccb0aa97b4be56b5cd68cf61e31 /src | |
parent | fb05af363a18d6618f1f73bdf092f6652f099c85 (diff) | |
download | gun-64009f92438bc658e298ae486234b5b1e5fed541.tar.gz gun-64009f92438bc658e298ae486234b5b1e5fed541.tar.bz2 gun-64009f92438bc658e298ae486234b5b1e5fed541.zip |
Fix retry_timeout value check
Diffstat (limited to 'src')
-rw-r--r-- | src/gun.erl | 2 |
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 |