Permalink
Browse files

Shouldn't try to shutdown the RPC socket if it doesn't exist

  • Loading branch information...
1 parent 429e0f1 commit 216323cfff480573109b98f9d9f8a56de1641bed @CFSworks CFSworks committed Nov 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 minerutil/RPCProtocol.py
View
@@ -52,7 +52,8 @@ def doRequest(self, *args):
def closeConnection(self):
if self.connection is not None:
- self.connection.sock.shutdown(socket.SHUT_RDWR)
+ if self.connection.sock is not None:
+ self.connection.sock.shutdown(socket.SHUT_RDWR)
self.connection.close()
if self.__response is not None:
self.__response.close()

0 comments on commit 216323c

Please sign in to comment.