mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
Fix close indexcoord panic (#14237)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
0dae260a9c
commit
e18dac16f3
@ -299,6 +299,8 @@ func (sched *TaskScheduler) Start() error {
|
||||
|
||||
// Close closes the task scheduler of indexing tasks.
|
||||
func (sched *TaskScheduler) Close() {
|
||||
sched.cancel()
|
||||
if sched.cancel != nil {
|
||||
sched.cancel()
|
||||
}
|
||||
sched.wg.Wait()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user