diff options
author | Alex Auvolat <alex@adnab.me> | 2018-07-04 13:17:26 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-07-04 13:27:36 +0200 |
commit | b234a360dafa0a65d797614aad5a4514570784f8 (patch) | |
tree | c636e7398fc8f3aba43b40c2fe67fc8264c56374 /lib/net/tcpserver.ex | |
parent | ece5faa69da724ddfdee7b92016bac73dbdbff70 (diff) | |
download | shard-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.ex | 2 |
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 |