Skip to content

Commit

Permalink
Fix (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk authored Jan 31, 2024
1 parent 6c6a1f9 commit f671621
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/jellyfish/room.ex
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ defmodule Jellyfish.Room do
do: send(peer.socket_pid, {:stop_connection, :peer_removed})

Logger.info("Removed peer #{inspect(peer_id)} from room #{inspect(state.id)}")
Event.broadcast_server_notification({:peer_disconnected, state.id, peer_id})

if peer.status == :connected,
do: Event.broadcast_server_notification({:peer_disconnected, state.id, peer_id})

{:ok, state}
else
Expand Down

0 comments on commit f671621

Please sign in to comment.