Compare commits

...

2 Commits

Author SHA1 Message Date
4c05158f23
Merge branch 'main' of git.colon-three.com:kodi/amethyst
All checks were successful
Build & Test / nix-build (push) Successful in 1m6s
2024-07-10 09:14:54 +02:00
2b9acc2afb
Structure tweaks 2024-07-10 09:13:03 +02:00

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(client, init(state)) serve_loop(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(client, state) serve_loop(client, state)
end end
def transmit(packet, client) do def transmit(packet, client) do