session: terminates on closed signal; complete session unit tests

This commit is contained in:
Jay
2026-05-17 11:50:36 -04:00
parent 283877619a
commit 9bd16922df
2 changed files with 28 additions and 4 deletions
+3
View File
@@ -243,6 +243,9 @@ func (s *session) run() {
s.terminate(termCloseSent)
return
}
case <-s.closed:
s.terminate(termReceivedClosed)
return
}
}
}