MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / close

Method close

src/network/asyncore_pollchoose.py:679–688  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

677 raise
678
679 def close(self):
680 self.connected = False
681 self.accepting = False
682 self.connecting = False
683 self.del_channel()
684 try:
685 self.socket.close()
686 except socket.error as why:
687 if why.args[0] not in (ENOTCONN, EBADF):
688 raise
689
690 # cheap inheritance, used to pass all other attribute
691 # references to the underlying socket object.

Callers 15

handle_closeMethod · 0.95
ssltest.pyFile · 0.45
check_sqliteFunction · 0.45
cleanupMethod · 0.45
runMethod · 0.45
queryServerMethod · 0.45
ensureNamecoinOptionsFunction · 0.45
runMethod · 0.45
runMethod · 0.45
readDefaultKnownNodesFunction · 0.45
stopThreadMethod · 0.45

Calls 1

del_channelMethod · 0.95

Tested by

no test coverage detected