misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-08-17 14:21:39 +02:00
commit 148122e8fa
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -282,9 +282,8 @@ func containsCapitals(s string) bool {
}
func (s *Session) Close() {
fmt.Printf("\nStopping modules and cleaning session state ...\n")
if *s.Options.Debug {
fmt.Printf("\nStopping modules and cleaning session state ...\n")
s.Events.Add("session.closing", nil)
}