diff options
Diffstat (limited to 'test/handlers/long_polling_h.erl')
-rw-r--r-- | test/handlers/long_polling_h.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/handlers/long_polling_h.erl b/test/handlers/long_polling_h.erl index 21f1d4d..1c86aed 100644 --- a/test/handlers/long_polling_h.erl +++ b/test/handlers/long_polling_h.erl @@ -15,8 +15,7 @@ init(_, Req, _) -> {loop, Req, 2, 5000, hibernate}. info(timeout, Req, 0) -> - {ok, Req2} = cowboy_req:reply(102, Req), - {ok, Req2, 0}; + {ok, cowboy_req:reply(102, Req), 0}; info(timeout, Req, Count) -> erlang:send_after(200, self(), timeout), {loop, Req, Count - 1, hibernate}. |