From fb6a0ae19a274a4f8cff8237aa86815e1c7dd5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 21 Mar 2014 10:50:05 +0100 Subject: Fix a ws_loop/1 call --- src/gun.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gun.erl') diff --git a/src/gun.erl b/src/gun.erl index 16aa6a4..cea8006 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -418,7 +418,7 @@ ws_loop(State=#state{parent=Parent, owner=Owner, retry=Retry, socket=Socket, Any when is_tuple(Any), is_pid(element(2, Any)) -> element(2, Any) ! {gun_error, self(), {notowner, "Operations are restricted to the owner of the connection."}}, - loop(State); + ws_loop(State); Any -> error_logger:error_msg("Unexpected message: ~w~n", [Any]) end. -- cgit v1.2.3