mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
balls
This commit is contained in:
parent
e64a24dd13
commit
3131660493
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,6 @@ func (s *Sniffer) Start() error {
|
|||
|
||||
go func() {
|
||||
s.Stats = NewSnifferStats()
|
||||
defer s.Ctx.Close()
|
||||
|
||||
src := gopacket.NewPacketSource(s.Ctx.Handle, s.Ctx.Handle.LinkType())
|
||||
for packet := range src.Packets() {
|
||||
|
@ -191,6 +190,7 @@ func (s *Sniffer) Stop() error {
|
|||
return session.ErrAlreadyStopped
|
||||
}
|
||||
s.SetRunning(false)
|
||||
s.Ctx.Close()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue