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

trying to solve that race condition

parent e41880e8
No related branches found
No related tags found
No related merge requests found
Pipeline #62088 failed with stages
in 2 minutes and 11 seconds
...@@ -38,6 +38,9 @@ class ListenerThread(threading.Thread): ...@@ -38,6 +38,9 @@ class ListenerThread(threading.Thread):
"""Called before start. It is not safe to fork after this""" """Called before start. It is not safe to fork after this"""
self.listener = EpollListener() self.listener = EpollListener()
def activate(self, sock):
self.listener.activate(sock)
def run(self): def run(self):
while not self.terminating: while not self.terminating:
self.listener.wait(timeout=1) self.listener.wait(timeout=1)
......
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