diff --git a/lib/hound/session_server.ex b/lib/hound/session_server.ex index 95caa5e..a4ade02 100644 --- a/lib/hound/session_server.ex +++ b/lib/hound/session_server.ex @@ -50,7 +50,7 @@ defmodule Hound.SessionServer do def destroy_sessions_for_pid(pid) do - GenServer.call(@name, {:destroy_sessions, pid}, 60000) + GenServer.cast(@name, {:destroy_sessions, pid}, 60000) end ## Callbacks @@ -87,9 +87,9 @@ defmodule Hound.SessionServer do error -> {:reply, {:error, error}, state} end - def handle_call({:destroy_sessions, pid}, _from, state) do + def handle_cast({:destroy_sessions, pid}, state) do destroy_sessions(pid) - {:reply, :ok, state} + {:noreply, state} end def handle_info({:DOWN, ref, _, _, _}, state) do