mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
revert some changes to regain stability
This commit is contained in:
parent
c3863a9dd3
commit
edf2ab5eb3
3 changed files with 12 additions and 20 deletions
4
index.js
4
index.js
|
@ -368,6 +368,10 @@ class PairDropServer {
|
|||
// delete the peer
|
||||
delete this._rooms[room][peer.id];
|
||||
|
||||
if (roomType === 'ip') {
|
||||
peer.socket.terminate();
|
||||
}
|
||||
|
||||
//if room is empty, delete the room
|
||||
if (!Object.keys(this._rooms[room]).length) {
|
||||
delete this._rooms[room];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue