Skip to content

Commit

Permalink
Found a bug in processing a session. (bi-zone#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcder02 authored Nov 9, 2023
1 parent fc78d03 commit 4d3daff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ func (self *Session) Process(cb EventCallback) error {
self.mu.Lock()
self.callback = cb
hSession := self.hSession
config := []SessionOptions{}
config := make([]SessionOptions, len(self.config))
copy(config, self.config)
self.mu.Unlock()

if config == nil || len(config) == 0 {
if len(config) == 0 {
return fmt.Errorf("no providers to subscribe to;")
}

Expand Down

0 comments on commit 4d3daff

Please sign in to comment.