@intuned/runtime-dev 1.0.1-udas.0 → 1.0.2-abort.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -119,11 +119,6 @@ function runAutomationCLI(importFunction) {
|
|
|
119
119
|
const input = inputParseResult.data;
|
|
120
120
|
if (input.type === "abort") {
|
|
121
121
|
abortController.abort();
|
|
122
|
-
await (0, _promises.setTimeout)(10);
|
|
123
|
-
jsonUnixSocket.sendJSON({
|
|
124
|
-
type: "done",
|
|
125
|
-
result: null
|
|
126
|
-
});
|
|
127
122
|
break;
|
|
128
123
|
}
|
|
129
124
|
if (input.type === "tokenUpdate") {
|
|
@@ -179,7 +174,7 @@ function runAutomationCLI(importFunction) {
|
|
|
179
174
|
}
|
|
180
175
|
if (!client.closed) {
|
|
181
176
|
client.end();
|
|
182
|
-
await Promise.race([new Promise(resolve => client.once("close", resolve)), new Promise(resolve => client.once("error", resolve)), (0, _promises.setTimeout)(
|
|
177
|
+
await Promise.race([new Promise(resolve => client.once("close", resolve)), new Promise(resolve => client.once("error", resolve)), (0, _promises.setTimeout)(3000)]);
|
|
183
178
|
}
|
|
184
179
|
process.exit(0);
|
|
185
180
|
});
|