From 64009f92438bc658e298ae486234b5b1e5fed541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 30 Apr 2017 17:04:55 +0200 Subject: Fix retry_timeout value check --- src/gun.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3