mirror of
https://github.com/edumeet/edumeet.git
synced 2026-01-23 02:34:58 +00:00
Port from Astagor v3
This commit is contained in:
parent
dc6f5f80c6
commit
83ee0498b6
1 changed files with 3 additions and 3 deletions
|
|
@ -69,6 +69,9 @@ class Peer extends EventEmitter
|
|||
|
||||
this._closed = true;
|
||||
|
||||
if (this.socket)
|
||||
this.socket.disconnect(true);
|
||||
|
||||
// Iterate and close all mediasoup Transport associated to this Peer, so all
|
||||
// its Producers and Consumers will also be closed.
|
||||
for (const transport of this.transports.values())
|
||||
|
|
@ -76,9 +79,6 @@ class Peer extends EventEmitter
|
|||
transport.close();
|
||||
}
|
||||
|
||||
if (this.socket)
|
||||
this.socket.disconnect(true);
|
||||
|
||||
this.emit('close');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue