Fix mutex unlock call

This commit is contained in:
Dan Sosedoff 2022-12-21 14:29:44 -06:00
parent bcba666507
commit aeb9dc24ad
No known key found for this signature in database
GPG Key ID: 26186197D282B164

View File

@ -44,7 +44,7 @@ func (m *SessionManager) IDs() []string {
func (m *SessionManager) Sessions() map[string]*client.Client {
m.mu.Lock()
sessions := m.sessions
defer m.mu.Unlock()
m.mu.Unlock()
return sessions
}