mirror of
https://gitee.com/openharmony/js_api_module
synced 2024-11-23 12:50:06 +00:00
!60 BugFix loop maybe nullprt when start worker loop
Merge pull request !60 from wangzhaoyong/master
This commit is contained in:
commit
9a105a7f7d
@ -365,7 +365,11 @@ public:
|
||||
void Loop()
|
||||
{
|
||||
uv_loop_t* loop = GetWorkerLoop();
|
||||
uv_run(loop, UV_RUN_DEFAULT);
|
||||
if (loop != nullptr) {
|
||||
uv_run(loop, UV_RUN_DEFAULT);
|
||||
} else {
|
||||
HILOG_ERROR("worker:: Worker loop is nullptr when start worker loop");
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user