commit 21db25538608ccdf76ed47020818249b1d9e06fe
parent 4d5b6a1aad4bf3698ff28341d741d460057e866d
Author: Robin Linus <robin_woll@capira.de>
Date: Sun, 3 Jan 2016 03:06:32 +0100
Reconnect if peer-connection is not open
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/elements/p2p-network/p2p-network.html b/app/elements/p2p-network/p2p-network.html
@@ -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, {