Skip to content

Commit 2f55f74

Browse files
committed
Offer option to delete package without timeout
1 parent 4c9c425 commit 2f55f74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/dappmanager/src/calls/packageRemove.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ export async function packageRemove({
4747
let hasRemoved = false;
4848
if (fs.existsSync(composePath)) {
4949
try {
50-
await dockerComposeDown(composePath, { volumes: deleteVolumes, timeout });
50+
await dockerComposeDown(composePath, {
51+
volumes: deleteVolumes,
52+
// Ignore timeout is user doesn't want to keep any data
53+
timeout: deleteVolumes ? undefined : timeout
54+
});
5155
hasRemoved = true; // To mimic an early return
5256
} catch (e) {
5357
logs.error(`Error on dockerComposeDown of ${dnp.dnpName}`, e);

0 commit comments

Comments
 (0)