Skip to content

Commit 41be336

Browse files
committed
Update _is_daemon.py
1 parent b730ba3 commit 41be336

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

yaqd-core/yaqd_core/_is_daemon.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,7 @@ async def shutdown_all(cls, sig, loop):
296296
# This is done after cancelling so that shutdown tasks which require the loop
297297
# are not themselves cancelled.
298298
[d.close() for d in cls._daemons]
299-
tasks = [
300-
t
301-
for t in asyncio.all_tasks()
302-
if (
303-
t is not asyncio.current_task()
304-
and "serve_forever" not in t.get_coro().__repr__()
305-
)
306-
]
307-
for task in tasks:
308-
logger.info(task.get_coro())
299+
tasks = [t for t in asyncio.all_tasks() if t is not asyncio.current_task()]
309300
await asyncio.gather(*tasks, return_exceptions=True)
310301
[d._save_state() for d in cls._daemons]
311302
if hasattr(signal, "SIGHUP") and sig == signal.SIGHUP:

0 commit comments

Comments
 (0)