Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
public async stop(): Promise<void> {
if (isMainThread && this.isStarted) {
await this.getWorkerImplementation().stop();
public async stop(): Promise<void> {
if (isMainThread && this.isStarted) {
await this.getWorkerImplementation().stop();
- if (this.workerImplementation) {
+ if (this.getWorkerImplementation()) {
// Nullify to force worker implementation instance creation
this.workerImplementation = null;
}
// Nullify to force worker implementation instance creation
this.workerImplementation = null;
}