Skip to content

Commit

Permalink
Reinit stop sync to prevent deadlock on sequential start/stops
Browse files Browse the repository at this point in the history
  • Loading branch information
ackleymi committed Sep 5, 2024
1 parent 0f3ec7b commit 87eef54
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 87eef54

Please sign in to comment.