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):
"""
logger.info('Commencing shutdown')
self.snr.shutdown()
# self.snr.shutdown()
self.listener.terminate()
if wait:
self.listener.join()
......@@ -113,7 +113,7 @@ class EpollListener(object):
This object is unusable after this call.
"""
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.close()
......
......@@ -14,7 +14,7 @@ class ListenerThread(threading.Thread):
"""
def __init__(self):
threading.Thread.__init__(self)
threading.Thread.__init__(self, name='coolamqp/ListenerThread')
self.daemon = True
self.terminating = False
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