@oussema_mili/test-pkg-123 1.1.26 → 1.1.27
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.
Potentially problematic release.
This version of @oussema_mili/test-pkg-123 might be problematic. Click here for more details.
- package/daemon/daemonManager.js +2 -2
- package/package.json +1 -1
package/daemon/daemonManager.js
CHANGED
|
@@ -103,7 +103,7 @@ export async function startDaemon(options = {}) {
|
|
|
103
103
|
* @returns {Promise<boolean>} True if stopped
|
|
104
104
|
*/
|
|
105
105
|
export async function stopDaemon(options = {}) {
|
|
106
|
-
const { timeout =
|
|
106
|
+
const { timeout = 20000 } = options;
|
|
107
107
|
|
|
108
108
|
const pid = getDaemonPid();
|
|
109
109
|
if (!pid) {
|
|
@@ -150,7 +150,7 @@ export async function stopDaemon(options = {}) {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// Timeout reached, force kill (always happens automatically
|
|
153
|
+
// Timeout reached, force kill (always happens automatically)
|
|
154
154
|
console.log(chalk.yellow('Graceful shutdown timed out, forcing stop...'));
|
|
155
155
|
try {
|
|
156
156
|
process.kill(pid, 'SIGKILL');
|