mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-28 10:20:39 +00:00
Reconnect if peer-connection is not open
This commit is contained in:
@@ -109,8 +109,9 @@
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
if (err.message.indexOf('Connection is not open') > -1) {
|
if (err.message.indexOf('Connection is not open') > -1) {
|
||||||
console.error('Handle this error!!', err);
|
console.error('Handle this error!!', err);
|
||||||
|
this.connectToPeer(requestedPeer, callback);
|
||||||
}
|
}
|
||||||
});
|
}.bind(this));
|
||||||
|
|
||||||
//files channel
|
//files channel
|
||||||
var f = this._peer.connect(requestedPeer, {
|
var f = this._peer.connect(requestedPeer, {
|
||||||
|
|||||||
Reference in New Issue
Block a user