From aeb9dc24adb5a0409ffd8cf0069ce3e09cdb6a91 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Wed, 21 Dec 2022 14:29:44 -0600 Subject: [PATCH] Fix mutex unlock call --- pkg/api/session_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/session_manager.go b/pkg/api/session_manager.go index a3b34bd..dbd1749 100644 --- a/pkg/api/session_manager.go +++ b/pkg/api/session_manager.go @@ -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 }