Skip to content

Commit 4fbd706

Browse files
committed
fix for prev commit
1 parent a54e956 commit 4fbd706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/controllers/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,12 +1226,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
12261226
$log.debug('Updating Transaction History');
12271227
self.txHistoryError = false;
12281228

1229-
self.updatingTxHistory[walletId] = true;
12301229
mutex.lock(['update-history-'+walletId], function(unlock){
1230+
self.updatingTxHistory[walletId] = true;
12311231
$timeout(function onUpdateHistoryTimeout() {
12321232
self.updateLocalTxHistory(fc, function(err) {
1233-
unlock();
12341233
self.updatingTxHistory[walletId] = false;
1234+
unlock();
12351235
if (err)
12361236
self.txHistoryError = true;
12371237
$timeout(function() {

0 commit comments

Comments
 (0)