mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -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 {
|
||||
for _, mod := range s.Modules {
|
||||
fmt.Println("loop")
|
||||
if mod.Running() {
|
||||
fmt.Printf("Stopping %s\n", mod.Name())
|
||||
mod.Stop()
|
||||
|
@ -102,8 +103,10 @@ func (s *Session) exitHandler(args []string, sess *Session) error {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Printf("Closing input\n")
|
||||
s.Active = false
|
||||
s.Input.Close()
|
||||
fmt.Printf("input closed\n")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue