mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
fix: session.started and session.closing are now debug only events.
This commit is contained in:
parent
a89da34d3a
commit
5304436736
1 changed files with 6 additions and 2 deletions
|
@ -168,7 +168,9 @@ func (s *Session) setupInput() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Session) Close() {
|
func (s *Session) Close() {
|
||||||
|
if *s.Options.Debug {
|
||||||
s.Events.Add("session.closing", nil)
|
s.Events.Add("session.closing", nil)
|
||||||
|
}
|
||||||
|
|
||||||
for _, m := range s.Modules {
|
for _, m := range s.Modules {
|
||||||
if m.Running() {
|
if m.Running() {
|
||||||
|
@ -281,7 +283,9 @@ func (s *Session) Start() error {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
if *s.Options.Debug {
|
||||||
s.Events.Add("session.started", nil)
|
s.Events.Add("session.started", nil)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue