handle disconnect sent

This commit is contained in:
Matias Alejo Garcia 2014-06-09 17:37:06 -03:00
parent 85030f00ab
commit 0be63c2801
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ Network.prototype._sendToOne = function(copayerId, payload, sig, cb) {
};
Network.prototype.send = function(copayerIds, payload, cb) {
if (!payload || !this.netKey) return cb();
var self=this;
if (!copayerIds) {
copayerIds = this.connectedCopayers();