mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-19 18:23:43 -04:00
!60 BugFix loop maybe nullprt when start worker loop
Merge pull request !60 from wangzhaoyong/master
This commit is contained in:
+5
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user