aboutsummaryrefslogtreecommitdiffstats
path: root/guide/listeners.md
diff options
context:
space:
mode:
Diffstat (limited to 'guide/listeners.md')
-rw-r--r--guide/listeners.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guide/listeners.md b/guide/listeners.md
index 1209706..a9ac4a0 100644
--- a/guide/listeners.md
+++ b/guide/listeners.md
@@ -162,11 +162,11 @@ connections are mostly waiting for messages, then they don't consume
much resources and can safely be removed from the count.
To remove the connection from the count, you must call the
-`ranch_listener:remove_connection/1` from within the connection process,
-with the listener pid as the only argument.
+`ranch:remove_connection/1` from within the connection process,
+with the name of the listener as the only argument.
``` erlang
-ranch_listener:remove_connection(ListenerPid).
+ranch:remove_connection(Ref).
```
As seen in the chapter covering protocols, this pid is received as the