This commit is contained in:
Håvar Aambø Fosstveit
2020-05-07 21:03:22 +02:00
parent 2373bf44d8
commit ce8141eed7
+2 -2
View File
@@ -64,10 +64,10 @@ class Peer extends EventEmitter
// Iterate and close all mediasoup Transport associated to this Peer, so all
// its Producers and Consumers will also be closed.
this.transports.forEach((transport) =>
for (const transport of this.transports.values())
{
transport.close();
});
}
if (this.socket)
this.socket.disconnect(true);