Merge pull request !150 from zhouhongli2023/master
This commit is contained in:
openharmony_ci 2024-08-19 01:59:29 +00:00 committed by Gitee
commit 22d603fa53
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -111,6 +111,7 @@ export abstract class WorkerWrapper {
public close() {
HiLog.i(TAG, `${this.getWorkerType()} worker close!`);
if (this.mWorker != null) {
HiLog.i(TAG, 'this mWorker is right');
this.mWorker.terminate();
}
this.mWorker = null;