@actual-app/api
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -79,9 +79,10 @@ let ipc = require('node-ipc'); | ||
function disconnect() { | ||
ipc.disconnect(socketClient.id); | ||
socketClient = null; | ||
initialized = false; | ||
if (socketClient) { | ||
ipc.disconnect(socketClient.id); | ||
socketClient = null; | ||
initialized = false; | ||
} | ||
} | ||
async function _run(func) { | ||
let hasError = false; | ||
let res; | ||
@@ -93,9 +94,9 @@ | ||
} catch (e) { | ||
hasError = true; | ||
send('api/cleanup', { hasError: true }); | ||
disconnect(); | ||
throw e; | ||
} finally { | ||
await send('api/cleanup', { hasError }); | ||
disconnect(); | ||
} | ||
send('api/cleanup'); | ||
disconnect(); | ||
return res; | ||
@@ -102,0 +103,0 @@ } |
{ | ||
"name": "@actual-app/api", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "An API for Actual", | ||
@@ -5,0 +5,0 @@ "main": "api.js", |
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
10729
389