Merge pull request #1056 from openziti/fix-panic

Fix panic. Fixes #1055
This commit is contained in:
Paul Lorenz
2022-06-15 10:20:53 -04:00
committed by GitHub
+1 -1
View File
@@ -328,7 +328,7 @@ func (sm *StateManagerImpl) AddConnectedApiSessionWithChannel(token string, remo
var sessions *MapWithMutex
for sessions == nil {
if _, ok := sm.activeApiSessions.Get(token); ok {
if sessions, _ = sm.activeApiSessions.Get(token); sessions != nil {
sessions.Put(ch, removeCB)
} else {
sessions = newMapWithMutex()