diff --git a/lib/gen_magic/server.ex b/lib/gen_magic/server.ex index 3b414d4..5eaed86 100644 --- a/lib/gen_magic/server.ex +++ b/lib/gen_magic/server.ex @@ -248,7 +248,7 @@ defmodule GenMagic.Server do data = %{data | request: nil} response = {:reply, from, handle_response(response)} next_state = (data.cycles >= data.recycle_threshold && :recycling) || :available - {:next_state, next_state, data, response} + {:next_state, next_state, data, [response, :hibernate]} end @doc false