Skip to content

Commit 570935e

Browse files
committed
Revert "fix: close event was not triggered reliably (#860)"
This reverts commit ec1d5ae, reversing changes made to 8816f54.
1 parent 7b41fb5 commit 570935e

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/negotiator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export class Negotiator {
113113
"iceConnectionState changed to disconnected on the connection with " +
114114
peerId,
115115
);
116-
this.connection.close();
117116
break;
118117
case "completed":
119118
peerConnection.onicecandidate = util.noop;

lib/peer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,6 @@ export class Peer extends EventEmitter<PeerEvents> {
491491

492492
if (index !== -1) {
493493
connections.splice(index, 1);
494-
if (connections.length <= 0) {
495-
this._connections.delete(connection.peer);
496-
}
497494
}
498495
}
499496

0 commit comments

Comments
 (0)