Skip to content

Commit 69641f8

Browse files
committed
Handle detached event
1 parent 9b825f2 commit 69641f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/janus/session.ex

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ defmodule Janus.Session do
141141
%{janus: "hangup"} ->
142142
reason = data[:reason]
143143
Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:hangup, pid, plugin_pid, reason}))
144+
%{janus: "detached"} ->
145+
Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:detached, pid, plugin_pid}))
144146
end
145147
end
146148
_ -> nil

0 commit comments

Comments
 (0)