mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +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.
|
// Close closes the task scheduler of indexing tasks.
|
||||||
func (sched *TaskScheduler) Close() {
|
func (sched *TaskScheduler) Close() {
|
||||||
sched.cancel()
|
if sched.cancel != nil {
|
||||||
|
sched.cancel()
|
||||||
|
}
|
||||||
sched.wg.Wait()
|
sched.wg.Wait()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user