From d82896dadf673df1d7448372bbaca1780f4288b6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 6 Nov 2015 18:00:19 +0100 Subject: [PATCH] fix #1525 (part 2) --- lib/synchronizer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/synchronizer.py b/lib/synchronizer.py index 93113c5c5..ef4796b07 100644 --- a/lib/synchronizer.py +++ b/lib/synchronizer.py @@ -73,14 +73,15 @@ class Synchronizer(ThreadJob): if not params: return addr = params[0] - if addr in self.requested_addrs: # Notifications won't be in - self.requested_addrs.remove(addr) history = self.wallet.get_address_history(addr) if self.wallet.get_status(history) != result: if self.requested_histories.get(addr) is None: + self.requested_histories[addr] = result self.network.send([('blockchain.address.get_history', [addr])], self.addr_history_response) - self.requested_histories[addr] = result + # remove addr from list only after it is added to requested_histories + if addr in self.requested_addrs: # Notifications won't be in + self.requested_addrs.remove(addr) def addr_history_response(self, response): params, result = self.parse_response(response)