From e7980aefaa17be75e66a95e62a756e5b2444e0f0 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 7 Aug 2014 18:58:12 -0300 Subject: [PATCH] remove onlyYou message --- js/models/core/WalletFactory.js | 3 --- js/models/network/Async.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/models/core/WalletFactory.js b/js/models/core/WalletFactory.js index 945a61fdf..d45213053 100644 --- a/js/models/core/WalletFactory.js +++ b/js/models/core/WalletFactory.js @@ -249,9 +249,6 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras self.network.on('connected', function(sender, data) { connectedOnce = true; }); - self.network.on('onlyYou', function(sender, data) { - return cb(connectedOnce ? 'walletFull' : 'joinError'); - }); self.network.on('serverError', function() { return cb('joinError'); diff --git a/js/models/network/Async.js b/js/models/network/Async.js index e779480fa..8fb37bc3e 100644 --- a/js/models/network/Async.js +++ b/js/models/network/Async.js @@ -258,6 +258,7 @@ Network.prototype._setupConnectionHandlers = function() { }; Network.prototype._handlePeerError = function(err) { + alert(err); console.log('RECV ERROR: ', err); if (err.message.match(/Could\snot\sconnect\sto peer/)) { this._checkAnyPeer();