From 8138eaed7b3a0e96295935e5ec8a971dedf38cbb Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 28 Apr 2014 15:15:09 -0300 Subject: [PATCH] change locking order --- js/models/core/Wallet.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 17a8256e5..8174e8f59 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -53,12 +53,12 @@ Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) { var hasChanged = pkr.merge(inPKR, true); if (hasChanged) { - this.log('### BROADCASTING PKR'); - recipients = null; - this.sendPublicKeyRing(recipients); if (this.publicKeyRing.isComplete()) { this._lockIncomming(); } + this.log('### BROADCASTING PKR'); + recipients = null; + this.sendPublicKeyRing(recipients); } this.emit('publicKeyRingUpdated', this.publicKeyRing); this.store();