change locking order
This commit is contained in:
parent
830b6d2b5f
commit
8138eaed7b
1 changed files with 3 additions and 3 deletions
|
|
@ -53,12 +53,12 @@ Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) {
|
||||||
|
|
||||||
var hasChanged = pkr.merge(inPKR, true);
|
var hasChanged = pkr.merge(inPKR, true);
|
||||||
if (hasChanged) {
|
if (hasChanged) {
|
||||||
this.log('### BROADCASTING PKR');
|
|
||||||
recipients = null;
|
|
||||||
this.sendPublicKeyRing(recipients);
|
|
||||||
if (this.publicKeyRing.isComplete()) {
|
if (this.publicKeyRing.isComplete()) {
|
||||||
this._lockIncomming();
|
this._lockIncomming();
|
||||||
}
|
}
|
||||||
|
this.log('### BROADCASTING PKR');
|
||||||
|
recipients = null;
|
||||||
|
this.sendPublicKeyRing(recipients);
|
||||||
}
|
}
|
||||||
this.emit('publicKeyRingUpdated', this.publicKeyRing);
|
this.emit('publicKeyRingUpdated', this.publicKeyRing);
|
||||||
this.store();
|
this.store();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue