auto_join_3.3
Håvar Aambø Fosstveit 2020-05-07 21:03:22 +02:00
parent 2373bf44d8
commit ce8141eed7
1 changed files with 2 additions and 2 deletions

View File

@ -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);