Skip to content
Snippets Groups Projects
Commit d073ac32 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Issue #110 fixes

parent 56d488b4
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,8 @@ class Packet(BasePacket):
"name",
# used for sr()
"_answered",
# used when sniffing
"direction", "sniffed_on"
]
__metaclass__ = Packet_metaclass
name = None
......
......@@ -618,7 +618,8 @@ interfaces)
except KeyboardInterrupt:
pass
if opened_socket is None:
s.close()
for s in sniff_sockets:
s.close()
return plist.PacketList(lst,"Sniffed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment