quickfix
quickfix copied to clipboard
Initiator got stuck during stopping procedure
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.