4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-11 02:36:28 +00:00

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
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)