Skip to content

Commit

Permalink
fix: provider loop instantiating on start
Browse files Browse the repository at this point in the history
  • Loading branch information
framaz committed Jun 14, 2020
1 parent b14999b commit 343e323
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phf/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def start(self) -> None:
"""Start the provider."""
self._asyncio_running = True
self._asyncio_task = asyncio.create_task(self.cycle())
self._asyncio_loop = asyncio.get_event_loop()

# TODO better stop
def stop(self):
Expand Down

0 comments on commit 343e323

Please sign in to comment.