From e4a535cfa6e27ac09c3f90b735748ad31cd78039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 2 Oct 2019 21:51:27 +0200 Subject: Fix another Dialyzer warning --- src/cowboy_http.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 6670781..505765a 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -272,7 +272,7 @@ cancel_timeout(State=#state{timer=TimerRef}) -> _ -> %% Do a synchronous cancel and remove the message if any %% to avoid receiving stray messages. - erlang:cancel_timer(TimerRef), + _ = erlang:cancel_timer(TimerRef), receive {timeout, TimerRef, _} -> ok after 0 -> -- cgit v1.2.3