Skip to content

Commit

Permalink
Merge pull request #669 from ackleymi/prevent-deadlock
Browse files Browse the repository at this point in the history
Reinit stop sync to prevent deadlock on sequential start/stops
  • Loading branch information
ackleymi authored Sep 6, 2024
2 parents 0f3ec7b + 87eef54 commit fa2e438
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ func (s *session) onAdmin(msg interface{}) {
}

func (s *session) run() {
s.stopOnce = sync.Once{}
s.Start(s)
var stopChan = make(chan struct{})
s.stateTimer = internal.NewEventTimer(func() {
Expand Down

0 comments on commit fa2e438

Please sign in to comment.