Server: hibernate between requests
This commit is contained in:
parent
654eb6b67f
commit
327afed608
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ defmodule GenMagic.Server do
|
||||||
data = %{data | request: nil}
|
data = %{data | request: nil}
|
||||||
response = {:reply, from, handle_response(response)}
|
response = {:reply, from, handle_response(response)}
|
||||||
next_state = (data.cycles >= data.recycle_threshold && :recycling) || :available
|
next_state = (data.cycles >= data.recycle_threshold && :recycling) || :available
|
||||||
{:next_state, next_state, data, response}
|
{:next_state, next_state, data, [response, :hibernate]}
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc false
|
@doc false
|
||||||
|
|
Loading…
Reference in a new issue