diff --git a/a_sync/_task.py b/a_sync/_task.py index 0a750220..8415fcc1 100644 --- a/a_sync/_task.py +++ b/a_sync/_task.py @@ -38,7 +38,7 @@ def create_task( if skip_gc_until_done: __persisted_tasks.add(asyncio.create_task(__persisted_task_exc_wrap(task))) if log_destroyed_pending is False: - task._log_destroyed_pending = False + task._log_destroy_pending = False __prune_persisted_tasks() return task