This commit is contained in:
evilsocket 2018-02-08 01:32:08 +01:00
commit 3672906491

View file

@ -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
}