We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41bbe38 commit 024112aCopy full SHA for 024112a
1 file changed
mode/services.py
@@ -694,7 +694,7 @@ async def sleep(self, n: Seconds) -> None:
694
"""Sleep for ``n`` seconds, or until service stopped."""
695
try:
696
await asyncio.wait_for(
697
- self._stopped.wait(),
+ asyncio.ensure_future(self._stopped.wait(), loop=self.loop),
698
timeout=want_seconds(n),
699
)
700
except asyncio.TimeoutError:
0 commit comments