mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1296 from matiaspando/error/joinfullwallet
Bug found that stops sending messages
This commit is contained in:
commit
daa5fcaf07
|
@ -340,6 +340,7 @@ Network.prototype.getCopayerIds = function() {
|
|||
|
||||
|
||||
Network.prototype.send = function(dest, payload, cb) {
|
||||
preconditions.checkState(this.socket);
|
||||
preconditions.checkArgument(payload);
|
||||
|
||||
var self = this;
|
||||
|
@ -357,7 +358,8 @@ Network.prototype.send = function(dest, payload, cb) {
|
|||
var to = dest[ii];
|
||||
if (to == this.copayerId)
|
||||
continue;
|
||||
log.debug('SEND to: ' + to, this.copayerId, payload);
|
||||
|
||||
log.debug('SEND to: ' + to, this.copayerId, JSON.stringify(payload));
|
||||
|
||||
var message = this.encode(to, payload);
|
||||
this.socket.emit('message', message);
|
||||
|
|
Loading…
Reference in New Issue