Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sedrubal
Masterarbeit
evaluation_tools
Commits
be8b1efc
Verified
Commit
be8b1efc
authored
Sep 25, 2021
by
Sebastian Endres
Browse files
Try to fix "This event loop is already running" errors
parent
eb39450e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tracer.py
View file @
be8b1efc
...
...
@@ -12,6 +12,7 @@ from functools import cached_property
from
pathlib
import
Path
from
typing
import
Any
,
Iterator
,
Optional
,
TypedDict
import
nest_asyncio
import
pyshark
from
prompt_toolkit.formatted_text
import
HTML
from
prompt_toolkit.shortcuts
import
ProgressBar
...
...
@@ -24,6 +25,9 @@ if typing.TYPE_CHECKING:
from
pyshark.packet.packet
import
Packet
# https://github.com/KimiNewt/pyshark/issues/434#issuecomment-691706873
nest_asyncio
.
apply
()
QuicStreamPacket
=
Any
...
...
@@ -293,6 +297,8 @@ class Trace:
packets
.
append
(
packet
)
# https://github.com/KimiNewt/pyshark/issues/366#issuecomment-524746268
self
.
_cap
.
close
()
self
.
_packets
=
packets
@
staticmethod
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment