mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
balls
This commit is contained in:
parent
9c97e99356
commit
3672906491
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,7 @@ func (s *Session) activeHandler(args []string, sess *Session) error {
|
||||||
|
|
||||||
func (s *Session) exitHandler(args []string, sess *Session) error {
|
func (s *Session) exitHandler(args []string, sess *Session) error {
|
||||||
for _, mod := range s.Modules {
|
for _, mod := range s.Modules {
|
||||||
|
fmt.Println("loop")
|
||||||
if mod.Running() {
|
if mod.Running() {
|
||||||
fmt.Printf("Stopping %s\n", mod.Name())
|
fmt.Printf("Stopping %s\n", mod.Name())
|
||||||
mod.Stop()
|
mod.Stop()
|
||||||
|
@ -102,8 +103,10 @@ func (s *Session) exitHandler(args []string, sess *Session) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Closing input\n")
|
||||||
s.Active = false
|
s.Active = false
|
||||||
s.Input.Close()
|
s.Input.Close()
|
||||||
|
fmt.Printf("input closed\n")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue