aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-03-21 10:50:05 +0100
committerLoïc Hoguin <[email protected]>2014-03-21 10:50:05 +0100
commitfb6a0ae19a274a4f8cff8237aa86815e1c7dd5b8 (patch)
tree7ffc3db68e5acb0dc717ff47a45d9e847fb68840
parent9c662615ace7e8b9c075e8a6a1752d849276b13d (diff)
downloadgun-fb6a0ae19a274a4f8cff8237aa86815e1c7dd5b8.tar.gz
gun-fb6a0ae19a274a4f8cff8237aa86815e1c7dd5b8.tar.bz2
gun-fb6a0ae19a274a4f8cff8237aa86815e1c7dd5b8.zip
Fix a ws_loop/1 call
-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.