mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Reconnect if peer-connection is not open
This commit is contained in:
parent
4d5b6a1aad
commit
21db255386
1 changed files with 2 additions and 1 deletions
|
@ -109,8 +109,9 @@
|
|||
console.log(err);
|
||||
if (err.message.indexOf('Connection is not open') > -1) {
|
||||
console.error('Handle this error!!', err);
|
||||
this.connectToPeer(requestedPeer, callback);
|
||||
}
|
||||
});
|
||||
}.bind(this));
|
||||
|
||||
//files channel
|
||||
var f = this._peer.connect(requestedPeer, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue