quickfix icon indicating copy to clipboard operation
quickfix copied to clipboard

Initiator got stuck during stopping procedure

Open filinvadim opened this issue 1 year ago • 0 comments

First of all please excuse me for a lack of information - this is all i have honestly.

I have stopping function wrapper:

func stopInitiator() {
	stopChan := make(chan struct{})
	go func() {
		f.cli.Stop()
		close(stopChan)
	}()
	select {
	case <-stopChan:
	case <-time.After(time.Minute):
		panic("fix initiator stopping timeout")
	}
}

Expected behavior: successful initiator stopping. Given behavior: initiator.Stop() method got stuck eternally -> panic.

filinvadim avatar Aug 27 '24 10:08 filinvadim