Skip to content
Snippets Groups Projects
Commit acbf4a23 authored by Pierre Lalet's avatar Pierre Lalet
Browse files

Merge pull request #114 from guedou/Issue_#110_bis

Issue #110 fixes
parents 56d488b4 d073ac32
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