Skip to content

Commit

Permalink
fix: deprecation of Thread.setDaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jun 28, 2023
1 parent bc81d7d commit 6205d21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions solara/server/threaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def __init__(self, port: int, host: str = "localhost", **kwargs):
self.started = threading.Event()
self.stopped = threading.Event()
self.error: Optional[BaseException] = None
super().__init__(name="test-server-thread")
self.setDaemon(True)
super().__init__(name="test-server-thread", daemon=True)

def run(self):
try:
Expand Down

0 comments on commit 6205d21

Please sign in to comment.