Skip to content

Commit

Permalink
Revert "fix: close event was not triggered reliably (#860)"
Browse files Browse the repository at this point in the history
This reverts commit ec1d5ae, reversing
changes made to 8816f54.
  • Loading branch information
jonasgloning committed Jun 8, 2022
1 parent 7b41fb5 commit 570935e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/negotiator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export class Negotiator {
"iceConnectionState changed to disconnected on the connection with " +
peerId,
);
this.connection.close();
break;
case "completed":
peerConnection.onicecandidate = util.noop;
Expand Down
3 changes: 0 additions & 3 deletions lib/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,6 @@ export class Peer extends EventEmitter<PeerEvents> {

if (index !== -1) {
connections.splice(index, 1);
if (connections.length <= 0) {
this._connections.delete(connection.peer);
}
}
}

Expand Down

0 comments on commit 570935e

Please sign in to comment.