Skip to content

Commit

Permalink
terminate tmalign workers
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Sep 11, 2024
1 parent 665482a commit 85b8e47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/StructureViewerMSA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default {
],
data: () => ({
structures: [], // { name, aa, 3di (ss), ca, NGL structure, alignment, map }
curReferenceIndex: 0, // index in ALL sequences, not just visualised subset - used as key
curReferenceIndex: -1, // index in ALL sequences, not just visualised subset - used as key
}),
props: {
entries: { type: Array, required: true },
Expand Down Expand Up @@ -205,9 +205,11 @@ ENDMDL
matrix: makeMatrix4(t, u),
tmResults: tmResults
});
worker.terminate();
}
worker.onerror = function (e) {
reject(e);
worker.terminate();
}
worker.postMessage(dataToProcess);
});
Expand Down Expand Up @@ -306,7 +308,7 @@ ENDMDL
if (!referenceChanged) {
return;
}
await Promise.all(
update.map(async (idx) => {
const structure = this.getComponentByIndex(idx);
Expand Down

0 comments on commit 85b8e47

Please sign in to comment.