Improve errors and handling of expired sessions

This commit is contained in:
Neil Alexander 2019-04-19 23:30:43 +01:00
parent 7e726b0afb
commit e31b914e38
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 16 additions and 7 deletions

View file

@ -368,7 +368,6 @@ func (ss *sessions) cleanup() {
// Closes a session, removing it from sessions maps and killing the worker goroutine.
func (sinfo *sessionInfo) close() {
sinfo.init = false
close(sinfo.closed)
delete(sinfo.core.sessions.sinfos, sinfo.myHandle)
delete(sinfo.core.sessions.byMySes, sinfo.mySesPub)