Compare commits

..

No commits in common. "4c05158f231e7f177370b03830c8042317fcbb31" and "54113589f9658286e3f66eaab129e196709887e6" have entirely different histories.

View File

@ -60,7 +60,7 @@ defmodule Amethyst.Server do
@spec serve(:gen_tcp.socket(), any()) :: no_return() @spec serve(:gen_tcp.socket(), any()) :: no_return()
def serve(client, state \\ []) do def serve(client, state \\ []) do
Logger.debug("#{__MODULE__} serving client #{inspect(client)}") Logger.debug("#{__MODULE__} serving client #{inspect(client)}")
serve_loop(client, init(state)) serve(client, init(state))
end end
defp serve_loop(client, state) do defp serve_loop(client, state) do
@ -72,7 +72,7 @@ defmodule Amethyst.Server do
if result != :ok do if result != :ok do
Logger.warning("Handler returned result #{result}") Logger.warning("Handler returned result #{result}")
end end
serve_loop(client, state) serve(client, state)
end end
def transmit(packet, client) do def transmit(packet, client) do