aboutsummaryrefslogtreecommitdiff
path: root/lib/net/tcpserver.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-07-04 13:17:26 +0200
committerAlex Auvolat <alex@adnab.me>2018-07-04 13:27:36 +0200
commitb234a360dafa0a65d797614aad5a4514570784f8 (patch)
treec636e7398fc8f3aba43b40c2fe67fc8264c56374 /lib/net/tcpserver.ex
parentece5faa69da724ddfdee7b92016bac73dbdbff70 (diff)
downloadshard-b234a360dafa0a65d797614aad5a4514570784f8.tar.gz
shard-b234a360dafa0a65d797614aad5a4514570784f8.zip
Multiple chat rooms (no web UI yet)
Diffstat (limited to 'lib/net/tcpserver.ex')
-rw-r--r--lib/net/tcpserver.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/tcpserver.ex b/lib/net/tcpserver.ex
index 7c758c1..46552a4 100644
--- a/lib/net/tcpserver.ex
+++ b/lib/net/tcpserver.ex
@@ -18,7 +18,7 @@ defmodule SNet.TCPServer do
defp loop_acceptor(socket, my_port) do
{:ok, client} = :gen_tcp.accept(socket)
- {:ok, pid} = DynamicSupervisor.start_child(SNet.ConnSupervisor, {SNet.TCPConn, %{socket: client, my_port: my_port}})
+ {:ok, pid} = DynamicSupervisor.start_child(Shard.DynamicSupervisor, {SNet.TCPConn, %{socket: client, my_port: my_port}})
:ok = :gen_tcp.controlling_process(client, pid)
loop_acceptor(socket, my_port)
end