mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 16:19:25 -07:00
fix: guard setup cancel ignore against null reads
This commit is contained in:
@@ -16,7 +16,7 @@ export async function waitForSetupCompletion(deps: {
|
|||||||
if (isSetupCompleted(state)) {
|
if (isSetupCompleted(state)) {
|
||||||
return 'completed';
|
return 'completed';
|
||||||
}
|
}
|
||||||
if (ignoringCancelled && state?.status !== 'cancelled') {
|
if (ignoringCancelled && state != null && state.status !== 'cancelled') {
|
||||||
ignoringCancelled = false;
|
ignoringCancelled = false;
|
||||||
}
|
}
|
||||||
if (state?.status === 'cancelled') {
|
if (state?.status === 'cancelled') {
|
||||||
|
|||||||
Reference in New Issue
Block a user