Asyncore update: Fix incoming connections
- dereferencing wasn't done correctly for incoming connections
This commit is contained in:
parent
2d7d9c2f92
commit
2df9598774
|
@ -40,21 +40,20 @@ class ReceiveQueueThread(threading.Thread, StoppableThread):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
BMConnectionPool().inboundConnections[dest].process()
|
BMConnectionPool().inboundConnections[dest].process()
|
||||||
|
except KeyError:
|
||||||
|
try:
|
||||||
|
BMConnectionPool().inboundConnections[dest.host].process()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
logger.error("Unknown state %s, ignoring", connection.state)
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
BMConnectionPool().outboundConnections[dest].process()
|
BMConnectionPool().outboundConnections[dest].process()
|
||||||
except KeyError:
|
except (KeyError, AttributeError):
|
||||||
pass
|
pass
|
||||||
except AttributeError:
|
|
||||||
logger.error("Unknown state %s, ignoring", connection.state)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
BMConnectionPool().udpSockets[dest].process()
|
BMConnectionPool().udpSockets[dest].process()
|
||||||
except KeyError:
|
except (KeyError, AttributeError):
|
||||||
pass
|
pass
|
||||||
except AttributeError:
|
|
||||||
logger.error("Unknown state %s, ignoring", connection.state)
|
|
||||||
|
|
Reference in New Issue
Block a user