1
0
mirror of https://github.com/RobinLinus/snapdrop.git synced 2025-05-20 17:40:24 -07:00

Reconnect if peer-connection is not open

This commit is contained in:
Robin Linus 2016-01-03 03:06:32 +01:00
parent 4d5b6a1aad
commit 21db255386

View File

@ -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, {