Skip to content

Commit

Permalink
fix: fix nil pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqinghe committed Oct 14, 2022
1 parent 15034d0 commit 2108f0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func NewManager(handler Handler, opts *NewManagerOptions) *Manager {
m := &Manager{
mu: &sync.RWMutex{},
conns: make(map[int64]*Session),
ulock: &sync.RWMutex{},
users: make(map[string]*Session),
handler: handler,
authenticator: opts.Authenticator,
Expand Down

0 comments on commit 2108f0d

Please sign in to comment.