Cleanup
parent
2373bf44d8
commit
ce8141eed7
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue