Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix WSPeer SnapDrop#458
fix this._isCaller variable typo SnapDrop#531
  • Loading branch information
yjmp14 committed Nov 17, 2022
1 parent 3d7cf6b commit 6d335ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/scripts/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class RTCPeer extends Peer {

_onChannelClosed() {
console.log('RTC: channel closed', this._peerId);
if (!this.isCaller) return;
if (!this._isCaller) return;
this._connect(this._peerId, true); // reopen the channel
}

Expand Down Expand Up @@ -413,7 +413,7 @@ class PeersManager {

}

class WSPeer {
class WSPeer extends Peer {
_send(message) {
message.to = this._peerId;
this._server.send(message);
Expand Down

0 comments on commit 6d335ba

Please sign in to comment.