mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
fix(pcap): retain independent probe cleanup owners
This commit is contained in:
1 parent
4643844ea5
commit
c2455152c9
4 files changed
+22
-9
No files matched your search
+10
-8
@@ -181,14 +181,16 @@ export const runPcapCommand = async (options: {
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(cause instanceof OwnedCommandFailure && cause.cleanupFailure !== null
|
||||
? {
|
||||
cleanup: {
|
||||
reason: cause.cleanupFailure,
|
||||
resources: cause.resources,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(cleanup !== undefined
|
||||
? { cleanup }
|
||||
: cause instanceof OwnedCommandFailure && cause.cleanupFailure !== null
|
||||
? {
|
||||
cleanup: {
|
||||
reason: cause.cleanupFailure,
|
||||
resources: cause.resources,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
if (cause instanceof OwnedCommandFailure && cause.reason === "cancelled")
|
||||
throw new AnalysisCancelledError(operation, {
|
||||
|
||||
@@ -347,6 +347,7 @@ export class PcapProvider {
|
||||
assertValidPcapCommandText(operation, stage, output);
|
||||
} catch (cause) {
|
||||
if (
|
||||
!commandReturned &&
|
||||
retainedCommand !== undefined &&
|
||||
cause instanceof AnalysisError &&
|
||||
cause.cleanupIncomplete
|
||||
|
||||
Reference in new issue
Block a user