We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e172b38 + 92e2431 commit 78b48d6Copy full SHA for 78b48d6
src/pyshark/capture/capture.py
@@ -173,7 +173,7 @@ def _setup_eventloop(self):
173
else:
174
# On Python before 3.8, Proactor is not the default eventloop type, so we have to create a new one.
175
# If there was an existing eventloop this can create issues, since we effectively disable it here.
176
- if asyncio.Task.all_tasks():
+ if asyncio.all_tasks():
177
warnings.warn("The running eventloop has tasks but pyshark must set a new eventloop to continue. "
178
"Existing tasks may not run.")
179
self.eventloop = asyncio.ProactorEventLoop()
0 commit comments