优化异步导出,修复上传空指针判断
This commit is contained in:
parent
9cf8777a16
commit
ae41655c5d
|
|
@ -143,8 +143,10 @@ func (e *ExportAsync) Run(ctx context.Context) (task_id string, cacheDir string,
|
||||||
e.logTool.Errorf("导出panic:\n任务:%s,错误原因:%s", e.task.Id, _err)
|
e.logTool.Errorf("导出panic:\n任务:%s,错误原因:%s", e.task.Id, _err)
|
||||||
}
|
}
|
||||||
e.release()
|
e.release()
|
||||||
if e.uploader.Host != "" {
|
if e.uploader != nil {
|
||||||
os.RemoveAll(tempDir)
|
if e.uploader.Host != "" {
|
||||||
|
os.RemoveAll(tempDir)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel()
|
cancel()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue