Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 74e9059

Browse files
authoredJun 11, 2020
fix: do not signal if channel destroyed (#226)
1 parent dc9bfa6 commit 74e9059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class WebRTCStar {
176176
reject(errcode(offer.err instanceof Error ? offer.err : new Error(offer.err), 'ERR_SIGNALLING_FAILED'))
177177
}
178178

179-
if (offer.intentId !== intentId || !offer.answer) {
179+
if (offer.intentId !== intentId || !offer.answer || channel.destroyed) {
180180
return
181181
}
182182

0 commit comments

Comments
 (0)
This repository has been archived.