diff options
Diffstat (limited to 'aergia')
| -rwxr-xr-x | aergia | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -240,6 +240,10 @@ class Aergia(object): '''Given an asyncio event loop, returns the list of idle task frames. A task is considered 'idle' if it is not currently executing.''' idle = [] + if not loop.get_debug(): + # ensure the loop is in debug mode. Otherwise, + # _source_traceback is NULL. + loop.set_debug(True) for th in loop._scheduled: st = th._source_traceback if st: |
