mirror of https://github.com/milvus-io/milvus.git
Fix querycoord panic when close before init scheduler (#13051)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/13213/head
parent
3313f29174
commit
255be8f4a8
|
@ -860,7 +860,9 @@ func (scheduler *TaskScheduler) Start() error {
|
|||
|
||||
// Close function stops the scheduleLoop and the processActivateTaskLoop
|
||||
func (scheduler *TaskScheduler) Close() {
|
||||
scheduler.cancel()
|
||||
if scheduler.cancel != nil {
|
||||
scheduler.cancel()
|
||||
}
|
||||
scheduler.wg.Wait()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue