tfix is_connected with http protocol - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 21c0578ca8eff0a3576008253cb45a5ba27d202c DIR parent 98f7d36313130746cb574f3627cf6f6d184dca69 HTML Author: ecdsa <ecdsa@github> Date: Wed, 10 Apr 2013 08:03:17 +0200 fix is_connected with http protocol Diffstat: M lib/interface.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -196,11 +196,15 @@ class Interface(threading.Thread): try: self.poll() except: + print_error("http init session failed") + self.is_connected = False return if self.session_id: print_error('http session:',self.session_id) self.is_connected = True + else: + self.is_connected = False def run_http(self): self.is_connected = True t@@ -226,6 +230,7 @@ class Interface(threading.Thread): def send_http(self, messages, channel='default'): import urllib2, json, time, cookielib + print_error( "send_http", messages ) if self.proxy: import socks