mirror of https://github.com/BTCPrivate/copay.git
prevent sending messages to self
This commit is contained in:
parent
9888bc9448
commit
2809a145e2
|
@ -356,6 +356,8 @@ Network.prototype.send = function(dest, payload, cb) {
|
||||||
var l = dest.length;
|
var l = dest.length;
|
||||||
var i = 0;
|
var i = 0;
|
||||||
dest.forEach(function(to) {
|
dest.forEach(function(to) {
|
||||||
|
if (to === this.copayerId)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
|
||||||
//console.log('\t to ' + to);
|
//console.log('\t to ' + to);
|
||||||
|
|
Loading…
Reference in New Issue