mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-27 07:00:31 +00:00
modify postTask
Signed-off-by: changzheng6 <hanfeng6@huawei.com>
This commit is contained in:
parent
69ed42a302
commit
e7d4d0390f
@ -296,8 +296,7 @@ bool Unzip(const FilePath &srcFile, const FilePath &destDir, const OPTIONS &opti
|
||||
UnzipWithFilterCallback(srcFile, destDir, options, unzipParam);
|
||||
};
|
||||
|
||||
auto runner = EventRunner::Create(true);
|
||||
std::shared_ptr<EventHandler> handler = std::make_shared<EventHandler>(runner);
|
||||
std::shared_ptr<EventHandler> handler = std::make_shared<EventHandler>(EventRunner::Create(true));
|
||||
handler->PostTask(innerTask);
|
||||
return true;
|
||||
}
|
||||
@ -343,8 +342,7 @@ bool Zip(const FilePath &srcDir, const FilePath &destFile, const OPTIONS &option
|
||||
}
|
||||
};
|
||||
|
||||
auto runner = EventRunner::Create(true);
|
||||
std::shared_ptr<EventHandler> handler = std::make_shared<EventHandler>(runner);
|
||||
std::shared_ptr<EventHandler> handler = std::make_shared<EventHandler>(EventRunner::Create(true));
|
||||
handler->PostTask(innerTask);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user