diff options
Diffstat (limited to 'lib/octochat/acceptor.ex')
-rw-r--r-- | lib/octochat/acceptor.ex | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/octochat/acceptor.ex b/lib/octochat/acceptor.ex index 5730ee4..28d14be 100644 --- a/lib/octochat/acceptor.ex +++ b/lib/octochat/acceptor.ex @@ -14,11 +14,7 @@ defmodule Octochat.Acceptor do defp loop_acceptor(socket) do {:ok, client} = :gen_tcp.accept(socket) - {:ok, pid} = Task.Supervisor.start_child( - Octochat.TaskSupervisor, - Octochat.Echo, - :serve, - [client]) + {:ok, pid} = Octochat.ServerSupervisor.start_server(client) :ok = :gen_tcp.controlling_process(client, pid) loop_acceptor(socket) end |