mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-09 04:19:27 -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)) {
|
||||
return 'completed';
|
||||
}
|
||||
if (ignoringCancelled && state?.status !== 'cancelled') {
|
||||
if (ignoringCancelled && state != null && state.status !== 'cancelled') {
|
||||
ignoringCancelled = false;
|
||||
}
|
||||
if (state?.status === 'cancelled') {
|
||||
|
||||
Reference in New Issue
Block a user