mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 10:23:02 +03:00
Fix mutex unlock call
This commit is contained in:
parent
bcba666507
commit
aeb9dc24ad
@ -44,7 +44,7 @@ func (m *SessionManager) IDs() []string {
|
|||||||
func (m *SessionManager) Sessions() map[string]*client.Client {
|
func (m *SessionManager) Sessions() map[string]*client.Client {
|
||||||
m.mu.Lock()
|
m.mu.Lock()
|
||||||
sessions := m.sessions
|
sessions := m.sessions
|
||||||
defer m.mu.Unlock()
|
m.mu.Unlock()
|
||||||
|
|
||||||
return sessions
|
return sessions
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user