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 af21f0f commit 06d2907Copy full SHA for 06d2907
lib/hound/session_server.ex
@@ -110,7 +110,12 @@ defmodule Hound.SessionServer do
110
sessions = all_sessions_for_pid(pid)
111
:ets.delete(@name, pid)
112
Enum.each sessions, fn({_session_name, session_id})->
113
- Hound.Session.destroy_session(session_id)
+ spawn fn -> destroy_session(session_id) end
114
end
115
116
+
117
+ defp destroy_session(session_id) do
118
+ Hound.Session.destroy_session(session_id)
119
+ rescue Hound.Error -> false
120
+ end
121
0 commit comments