Skip to content

Commit 37c641a

Browse files
committed
Call destroy on peer-connection close
1 parent d866015 commit 37c641a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

polyfill/RTCPeerConnection.js

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export default class _RTCPeerConnection extends EventTarget {
222222
});
223223

224224
this.#peerConnection.close();
225+
this.#peerConnection.destroy();
225226
}
226227

227228
createAnswer() {

test/polyfill-connectivity.js

-1
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,4 @@ peer2
8686
setTimeout(() => {
8787
peer1.close();
8888
peer2.close();
89-
nodeDataChannel.cleanup();
9089
}, 5 * 1000);

0 commit comments

Comments
 (0)