Add terminal message

This commit is contained in:
Andy Wang 2019-10-15 22:24:33 +01:00
parent beb6568ce0
commit a1b719b15f

View File

@ -193,6 +193,7 @@ func (sesh *Session) recvDataFromRemote(data []byte) error {
return nil
} else if frame.Closing == 2 {
// Closing session
sesh.SetTerminalMsg("Received a closing notification frame")
return sesh.passiveClose()
} else {
// it may be tempting to use the connId from which the frame was received. However it doesn't make