We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c44085 commit 6689032Copy full SHA for 6689032
apps/expert/lib/expert/engine_node.ex
@@ -58,7 +58,11 @@ defmodule Expert.EngineNode do
58
end
59
60
def stop(%__MODULE__{} = state, from, stop_timeout) do
61
- project_rpc(state, System, :stop)
+ # Wait a little bit before stopping the node to allow the reply
62
+ # to be sent back to the caller before the node goes down.
63
+ :timer.apply_after(50, fn ->
64
+ project_rpc(state, System, :stop)
65
+ end)
66
%{state | stopped_by: from, stop_timeout: stop_timeout, status: :stopping}
67
68
0 commit comments