aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl3
1 files changed, 2 insertions, 1 deletions
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,