diff options
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 |