Loïc Hoguin 5 лет назад
Родитель
Сommit
e4a535cfa6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/cowboy_http.erl

+ 1 - 1
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 ->