electrum

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

commit d3a9af9e796d8ae42b80ca6172fc4075d77599c5
parent 43b770fbf5520efde53413765456d6e7bc5c633d
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 10 Mar 2016 15:38:24 +0100

catch exception in interface.close

Diffstat:
Mlib/interface.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -243,7 +243,10 @@ class Interface(util.PrintError): def close(self): if not self.closed_remotely: - self.socket.shutdown(socket.SHUT_RDWR) + try: + self.socket.shutdown(socket.SHUT_RDWR) + except socket.error: + pass self.socket.close() def queue_request(self, *args): # method, params, _id