electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7daa8ebfdd923950841627b79a73507dd8e82322
parent 74e76986a2ba200337e1b5af7c42c69937d19552
Author: ThomasV <thomasv@electrum.org>
Date:   Wed,  1 Feb 2017 13:59:07 +0100

interface: close wire is response is not dict

Diffstat:
Mlib/interface.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -313,10 +313,11 @@ class Interface(util.PrintError): response = self.pipe.get() except util.timeout: break - if response is None: + if not type(response) is dict: responses.append((None, None)) - self.closed_remotely = True - self.print_error("connection closed remotely") + if response is None: + self.closed_remotely = True + self.print_error("connection closed remotely") break if self.debug: self.print_error("<--", response)