mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-11 20:17:10 +00:00
fix: resolve duplicate peerList IDs and refine server deduplication emission
This commit is contained in:
@@ -228,6 +228,7 @@ io.on('connection', (socket) => {
|
||||
room.peers.delete(sid);
|
||||
room.peerIds.delete(sid);
|
||||
room.peerData.delete(sid);
|
||||
socket.to(roomId).emit(EVENTS.PEER_STATUS, { peerId: data.peerId, status: 'left' });
|
||||
log('ROOM', `Deduplicated peer ${peerId} from room ${roomId}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user