Skip to content

Commit

Permalink
remove if headless sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
tehcoderer committed Aug 31, 2023
1 parent e52cd3d commit 45d6f76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/plotly_figure/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def pywry_write_image(
timeout : int, optional
Timeout for receiving the image, by default 5
"""
if not pywry_backend().isatty:
return

if not isinstance(filepath, Path):
filepath = Path(filepath)
Expand Down
2 changes: 0 additions & 2 deletions python/pywry/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,6 @@ def start(self, debug: bool = False, headless: bool = False):
self.thread.join()
self.thread = thread

if headless:
self.loop.run_until_complete(asyncio.sleep(3))
self.check_backend()

def close(self):
Expand Down

0 comments on commit 45d6f76

Please sign in to comment.