Skip to content

Commit

Permalink
Merge pull request #424 from DavidStirling/shutdown
Browse files Browse the repository at this point in the history
Prevent hang on exit while omero.client keepalive is active
  • Loading branch information
jburel authored Sep 16, 2024
2 parents 749a68a + 0f8fe1c commit 789a097
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/omero/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,9 @@ def run(self):
ctx.stop_event.wait(ctx.sleeptime)
except ValueError:
pass

if isinstance(ctx.stop_event,
omero.util.concurrency.AtExitEvent):
if ctx.stop_event.atexit:
return # Skipping log. See #3260

ctx.logger.info("Halted")

self.thread = Task()
self.thread = Task(daemon=True)
self.thread.ctx = self
self.thread.start()

Expand Down

0 comments on commit 789a097

Please sign in to comment.