test(stream): add unit tests for stream behavior
- Fix duplicating EOF error when closing SSH connection - Add new SessionStatusCLOSED type
This commit is contained in:
@@ -256,8 +256,6 @@ func (i *interaction) Start() {
|
||||
i.program.Kill()
|
||||
i.program = nil
|
||||
if i.closeFunc != nil {
|
||||
if err := i.closeFunc(); err != nil {
|
||||
log.Printf("Cannot close session: %s \n", err)
|
||||
}
|
||||
_ = i.closeFunc()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user