Skip to content

Commit 87eef54

Browse files
committed
Reinit stop sync to prevent deadlock on sequential start/stops
1 parent 0f3ec7b commit 87eef54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ func (s *session) onAdmin(msg interface{}) {
848848
}
849849

850850
func (s *session) run() {
851+
s.stopOnce = sync.Once{}
851852
s.Start(s)
852853
var stopChan = make(chan struct{})
853854
s.stateTimer = internal.NewEventTimer(func() {

0 commit comments

Comments
 (0)