add more peer checks

This commit is contained in:
Matias Alejo Garcia 2014-05-01 16:40:25 -03:00
commit bd501f854b
2 changed files with 32 additions and 15 deletions

View file

@ -152,9 +152,11 @@ WalletFactory.prototype.remove = function(walletId) {
WalletFactory.prototype.joinCreateSession = function(secret, nickname, cb) {
var self = this;
console.log('[WalletFactory.js.154]'); //TODO
var s;
try {
s=Wallet.decodeSecret(secret);
console.log('[WalletFactory.js.157]',s); //TODO
} catch (e) {
return cb('badSecret');
}