Skip to content

Commit

Permalink
Check if wrtc still exists (lynckia#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Feb 7, 2019
1 parent 6e23a69 commit e0f9dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizo_controller/erizoJS/models/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Connection extends events.EventEmitter {
}

_resendLastAnswer(evt, streamId, label, forceOffer = false, removeStream = false) {
if (!this.wrtc.localDescription) {
if (!this.wrtc || !this.wrtc.localDescription) {
return;
}
this.wrtc.localDescription = new SessionDescription(this.wrtc.getLocalDescription());
Expand Down

0 comments on commit e0f9dbe

Please sign in to comment.