Compare commits
2 Commits
54113589f9
...
4c05158f23
Author | SHA1 | Date | |
---|---|---|---|
4c05158f23 | |||
2b9acc2afb |
@ -60,7 +60,7 @@ defmodule Amethyst.Server do
|
||||
@spec serve(:gen_tcp.socket(), any()) :: no_return()
|
||||
def serve(client, state \\ []) do
|
||||
Logger.debug("#{__MODULE__} serving client #{inspect(client)}")
|
||||
serve(client, init(state))
|
||||
serve_loop(client, init(state))
|
||||
end
|
||||
|
||||
defp serve_loop(client, state) do
|
||||
@ -72,7 +72,7 @@ defmodule Amethyst.Server do
|
||||
if result != :ok do
|
||||
Logger.warning("Handler returned result #{result}")
|
||||
end
|
||||
serve(client, state)
|
||||
serve_loop(client, state)
|
||||
end
|
||||
|
||||
def transmit(packet, client) do
|
||||
|
Loading…
Reference in New Issue
Block a user