Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 216323cfff480573109b98f9d9f8a56de1641bed 1 parent 429e0f1
@CFSworks CFSworks authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  minerutil/RPCProtocol.py
View
3  minerutil/RPCProtocol.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.