@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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yz-social/webrtc",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Streamlined portable webrtc management of p2p and client2server.",
5
5
  "keywords": [
6
6
  "webrtc",