aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/net/tcpserver.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-10 15:04:11 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-10 15:04:11 +0200
commit1ee9c3fa6d4259d63685aea95d23b515f59a74cf (patch)
tree418decf98286040d67aa11533092f1bcf0a996e5 /shard/lib/net/tcpserver.ex
parent3ba44d72a09d3da72d0dd3e495e5cdea07a0bdac (diff)
downloadshard-1ee9c3fa6d4259d63685aea95d23b515f59a74cf.tar.gz
shard-1ee9c3fa6d4259d63685aea95d23b515f59a74cf.zip
BROKE EVERYTHING SORRY
Diffstat (limited to 'shard/lib/net/tcpserver.ex')
-rw-r--r--shard/lib/net/tcpserver.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/shard/lib/net/tcpserver.ex b/shard/lib/net/tcpserver.ex
index 46552a4..1aa5738 100644
--- a/shard/lib/net/tcpserver.ex
+++ b/shard/lib/net/tcpserver.ex
@@ -18,7 +18,8 @@ defmodule SNet.TCPServer do
defp loop_acceptor(socket, my_port) do
{:ok, client} = :gen_tcp.accept(socket)
- {:ok, pid} = DynamicSupervisor.start_child(Shard.DynamicSupervisor, {SNet.TCPConn, %{socket: client, my_port: my_port}})
+ {:ok, pid} = DynamicSupervisor.start_child(Shard.DynamicSupervisor,
+ {SNet.TCPConn, %{socket: client, my_port: my_port, is_client: false}})
:ok = :gen_tcp.controlling_process(client, pid)
loop_acceptor(socket, my_port)
end