0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Fix another Dialyzer warning

This commit is contained in:
Loïc Hoguin 2019-10-02 21:51:27 +02:00
parent eaa052616f
commit e4a535cfa6
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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 ->