Skip to content

Commit 2ed033f

Browse files
committed
run_forever: Always sleep, even if no exception occurs
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
1 parent 32d95d8 commit 2ed033f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frequenz/sdk/_internal/_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def run_forever(
4848
await async_callable()
4949
except Exception: # pylint: disable=broad-except
5050
_logger.exception("Restarting after exception")
51-
await asyncio.sleep(interval_s)
51+
await asyncio.sleep(interval_s)
5252

5353

5454
class NotSyncConstructible(AssertionError):

0 commit comments

Comments
 (0)