Skip to content

Commit 712224e

Browse files
committed
fix: replace removed Server._stop method with Server.cancel_tasks
1 parent 4a5fbd8 commit 712224e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_localserver/smtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def stop(self, timeout=None):
130130
# be called more than once safely
131131
# - It passes the timeout argument to Thread.join()
132132
if self.loop.is_running():
133-
self.loop.call_soon_threadsafe(self._stop)
133+
self.loop.call_soon_threadsafe(self.cancel_tasks)
134134
if self._thread is not None:
135135
self._thread.join(timeout)
136136
self._thread = None

0 commit comments

Comments
 (0)