Commit 215b5d599536fb7d28c8d6282af777ab159290dc
1 parent
e0cc84916c
Exists in
master
Fix process.exit position on killOnIdle
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
lib/kill-on-idle.js
... | ... | @@ -29,9 +29,9 @@ const killOnIdle = () => { |
29 | 29 | ageMs, |
30 | 30 | maxIdleMs, |
31 | 31 | }); |
32 | - } | |
33 | 32 | |
34 | - process.exit(1); | |
33 | + process.exit(1); | |
34 | + } | |
35 | 35 | }; |
36 | 36 | |
37 | 37 | const init = () => { |
... | ... | @@ -39,6 +39,8 @@ const init = () => { |
39 | 39 | return; |
40 | 40 | } |
41 | 41 | |
42 | + touch(); | |
43 | + | |
42 | 44 | logger.verbose(`${MODULE_NAME} CF75F9CE: Registering kill on idle checker`, { |
43 | 45 | maxIdleMs, |
44 | 46 | }); |