Skip to content

Commit

Permalink
Disconnect queue when cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Oct 13, 2022
1 parent 6833dd4 commit 97d74ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/packages/app/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export const fn =
);
// Cancelled jobs are set to complete
if (cancels.length > 0) {
cancels.forEach((fn_index) =>
cancels.forEach((fn_index) => {
loading_status.update(
fn_index,
"complete",
Expand All @@ -264,8 +264,9 @@ export const fn =
null,
null,
null
)
);
);
ws_map.get(fn_index)?.close();
});
}
} else {
loading_status.update(
Expand Down

0 comments on commit 97d74ca

Please sign in to comment.