@yz-social/webrtc 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -169,7 +169,7 @@ export class WebRTC {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
if (description.type === "offer") {
|
|
172
|
+
if (description.type === "offer" && this.pc) {
|
|
173
173
|
const answer = await this.pc.createAnswer();
|
|
174
174
|
await this.pc.setLocalDescription(answer)
|
|
175
175
|
.catch(e => this.log(this.name, 'ignoring error setLocalDescription of answer', e));
|