@travetto/exec
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -11,4 +11,4 @@ { | ||
"dependencies": { | ||
"@travetto/base": "^0.4.4", | ||
"@types/generic-pool": "^3.1.4", | ||
"@travetto/base": "^0.4.7", | ||
"@types/generic-pool": "^3.1.6", | ||
"generic-pool": "^3.4.2" | ||
@@ -31,4 +31,4 @@ }, | ||
}, | ||
"version": "0.4.4", | ||
"gitHead": "cd17462f7331b7a5a74181cfa9a1573b7cd26f9e" | ||
"version": "0.4.5", | ||
"gitHead": "57ee4da983bfa3f2a7e3dac6a24ed0f4af5f71c2" | ||
} |
@@ -34,19 +34,15 @@ import * as os from 'os'; | ||
release(execution: T) { | ||
if (execution.active) { | ||
if (execution.release) { | ||
execution.release(); | ||
async release(execution: T) { | ||
try { | ||
if (execution.active) { | ||
if (execution.release) { | ||
try { | ||
await execution.release(); | ||
} catch { } | ||
} | ||
await this.pool.release(execution); | ||
} else { | ||
await this.pool.destroy(execution); | ||
} | ||
try { | ||
this.pool.release(execution); | ||
} catch (e) { | ||
// Ignore if not owned | ||
} | ||
} else { | ||
try { | ||
this.pool.destroy(execution); | ||
} catch (e) { | ||
// Ignore if not owned | ||
} | ||
} | ||
} catch { } | ||
} | ||
@@ -53,0 +49,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31340
824
Updated@travetto/base@^0.4.7
Updated@types/generic-pool@^3.1.6