Cleanup
This commit is contained in:
+2
-2
@@ -64,10 +64,10 @@ class Peer extends EventEmitter
|
|||||||
|
|
||||||
// Iterate and close all mediasoup Transport associated to this Peer, so all
|
// Iterate and close all mediasoup Transport associated to this Peer, so all
|
||||||
// its Producers and Consumers will also be closed.
|
// its Producers and Consumers will also be closed.
|
||||||
this.transports.forEach((transport) =>
|
for (const transport of this.transports.values())
|
||||||
{
|
{
|
||||||
transport.close();
|
transport.close();
|
||||||
});
|
}
|
||||||
|
|
||||||
if (this.socket)
|
if (this.socket)
|
||||||
this.socket.disconnect(true);
|
this.socket.disconnect(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user