Skip to content

Commit

Permalink
Remove task cancelling from AsyncPeriodicExecutor.close
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Jan 21, 2025
1 parent f1f8d62 commit a4eedb3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pymongo/periodic_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def close(self, dummy: Any = None) -> None:
callback; see monitor.py.
"""
self._stopped = True
if self._task is not None:
self._task.cancel()

async def join(self, timeout: Optional[int] = None) -> None:
if self._task is not None:
Expand Down

0 comments on commit a4eedb3

Please sign in to comment.