aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gun.erl2
1 files changed, 1 insertions, 1 deletions
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.