Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Geant4Worker/Geant4Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default class Geant4Worker {
this.worker = undefined;
this.isInitialized = false;
this.depsLoaded = false;
this.state = StatusState.CANCELED;
}

async loadDeps() {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/converter
8 changes: 7 additions & 1 deletion src/services/Geant4LocalWorkerSimulationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,12 @@ export default class Geant4LocalWorkerSimulationService implements SimulationSer
}

cancelJob(info: SimulationInfo, signal?: AbortSignal | undefined): Promise<void> {
throw new Error('Method not implemented.');
const { jobId } = info;

if (this.workers.hasOwnProperty(jobId)) {
this.workers[jobId].markSafeForTermination();
}

return Promise.resolve();
}
}