fix: closing leaked handlers here and there

This commit is contained in:
evilsocket 2018-01-25 14:42:05 +01:00
commit 66f2f35f0c
3 changed files with 3 additions and 0 deletions

View file

@ -186,5 +186,6 @@ func (s *Sniffer) Stop() error {
return session.ErrAlreadyStopped
}
s.SetRunning(false)
s.Ctx.Close()
return nil
}