From c5a42cc4a32f38a195f9c15e4456a48eaefdfa82 Mon Sep 17 00:00:00 2001 From: Unix1 Date: Sun, 8 Jun 2014 16:16:44 -0700 Subject: continue after unexpected message for extend/gun#19 --- src/gun.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gun.erl') diff --git a/src/gun.erl b/src/gun.erl index 7cdbfb5..71af26e 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -535,7 +535,8 @@ loop(State=#state{parent=Parent, owner=Owner, host=Host, "before the gun:ws_send/1 function can be used."}}, loop(State); Any -> - error_logger:error_msg("Unexpected message: ~w~n", [Any]) + error_logger:error_msg("Unexpected message: ~w~n", [Any]), + loop(State) end. ws_loop(State=#state{parent=Parent, owner=Owner, retry=Retry, socket=Socket, -- cgit v1.2.3