Skip to content

Commit

Permalink
Add relay peers to peerCount so session is not closed if relay peers …
Browse files Browse the repository at this point in the history
…exist (#597)
  • Loading branch information
tab1293 authored Oct 26, 2021
1 parent 09707c7 commit 6412345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sfu/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *SessionLocal) RemovePeer(p Peer) {
if s.peers[pid] == p {
delete(s.peers, pid)
}
peerCount := len(s.peers)
peerCount := len(s.peers) + len(s.relayPeers)
s.mu.Unlock()

// Close SessionLocal if no peers
Expand Down

0 comments on commit 6412345

Please sign in to comment.