mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-22 07:46:17 -04:00
Cleanup; fix STUN servers
This commit is contained in:
parent
e9eeea48e5
commit
6317c25b10
3 changed files with 19 additions and 17 deletions
|
@ -84,7 +84,7 @@ class SnapdropServer {
|
|||
_leaveRoom(peer) {
|
||||
// delete the peer
|
||||
this._cancelKeepAlive(peer);
|
||||
if (!this._rooms[peer.ip]) return;
|
||||
if (!this._rooms[peer.ip] || !this._rooms[peer.ip][peer.id]) return;
|
||||
|
||||
delete this._rooms[peer.ip][peer.id];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue