Skip to content
Snippets Groups Projects
Commit af83041c authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

huntin' and loggin'

parent d8f3cdc9
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ class Cluster(object): ...@@ -147,7 +147,7 @@ class Cluster(object):
""" """
logger.info('Commencing shutdown') logger.info('Commencing shutdown')
self.snr.shutdown() # self.snr.shutdown()
self.listener.terminate() self.listener.terminate()
if wait: if wait:
self.listener.join() self.listener.join()
...@@ -113,7 +113,7 @@ class EpollListener(object): ...@@ -113,7 +113,7 @@ class EpollListener(object):
This object is unusable after this call. This object is unusable after this call.
""" """
self.time_events = [] self.time_events = []
for sock in six.itervalues(self.fd_to_sock): for sock in list(six.itervalues(self.fd_to_sock)):
sock.on_fail() sock.on_fail()
sock.close() sock.close()
......
...@@ -14,7 +14,7 @@ class ListenerThread(threading.Thread): ...@@ -14,7 +14,7 @@ class ListenerThread(threading.Thread):
""" """
def __init__(self): def __init__(self):
threading.Thread.__init__(self) threading.Thread.__init__(self, name='coolamqp/ListenerThread')
self.daemon = True self.daemon = True
self.terminating = False self.terminating = False
self.listener = EpollListener() self.listener = EpollListener()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment