tinterface: close wire is response is not dict - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 7daa8ebfdd923950841627b79a73507dd8e82322
DIR parent 74e76986a2ba200337e1b5af7c42c69937d19552
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 1 Feb 2017 13:59:07 +0100
interface: close wire is response is not dict
Diffstat:
M lib/interface.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
DIR diff --git a/lib/interface.py b/lib/interface.py
t@@ -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)