mirror of
https://github.com/openharmony/js_worker_module.git
synced 2026-07-19 19:23:34 -04:00
!57 Release Worker Bugfix
Merge pull request !57 from wangzhaoyong/master
This commit is contained in:
@@ -1123,6 +1123,7 @@ void Worker::ReleaseWorkerThreadContent()
|
||||
// 4. delete NativeEngine created in worker thread
|
||||
auto workerEngine = reinterpret_cast<NativeEngine*>(workerEnv_);
|
||||
workerEngine->CloseAsyncWork();
|
||||
reinterpret_cast<NativeEngine*>(workerEnv_)->DeleteEngine();
|
||||
Helper::CloseHelp::DeletePointer(reinterpret_cast<NativeEngine*>(workerEnv_), false);
|
||||
workerEnv_ = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user