Skip to content

Commit fbdc997

Browse files
committed
chore: re-add second abort check
1 parent 2f88722 commit fbdc997

File tree

1 file changed

+8
-0
lines changed
  • src/backend/storeManagers/hyperplay

1 file changed

+8
-0
lines changed

src/backend/storeManagers/hyperplay/games.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,14 @@ async function applyPatching(
19221922
return { status: 'abort' }
19231923
}
19241924

1925+
signal.onabort = async () => {
1926+
aborted = true
1927+
await safeRemoveDirectory(datastoreDir, {
1928+
sizeThresholdMB: blockSize * totalBlocks
1929+
})
1930+
return { status: 'abort' }
1931+
}
1932+
19251933
for await (const output of generator) {
19261934
logInfo(output, LogPrefix.HyperPlay)
19271935

0 commit comments

Comments
 (0)