electrum

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

commit ad6dd73a032517651d6e029163628d67039a36d2
parent de4fe9db693b0bdf2f97ce558552d0068fb977d9
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  5 Apr 2018 11:27:12 +0200

do not catch OSError in pipe.send (fix ANR on some versions of Android)

Diffstat:
Mlib/interface.py | 4++--
Mlib/util.py | 4----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -297,8 +297,8 @@ class Interface(util.PrintError): wire_requests = self.unsent_requests[0:n] try: self.pipe.send_all([make_dict(*r) for r in wire_requests]) - except socket.error as e: - self.print_error("socket error:", e) + except BaseException as e: + self.print_error("pipe send error:", e) return False self.unsent_requests = self.unsent_requests[n:] for request in wire_requests: diff --git a/lib/util.py b/lib/util.py @@ -736,10 +736,6 @@ class SocketPipe: print_error("SSLError:", e) time.sleep(0.1) continue - except OSError as e: - print_error("OSError", e) - time.sleep(0.1) - continue class QueuePipe: