Exit runtime

This commit is contained in:
Romein van Buren 2022-07-13 14:13:35 +02:00
parent daf16a00b2
commit d6261432b9
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -33,7 +33,7 @@ process.on('message', async message => {
process.send({ outage: mapped });
}
break;
process.exit();
case 'testOne':
if (!message.service) {
@ -44,10 +44,10 @@ process.on('message', async message => {
const result = await testEndpoints(service.autotest);
process.send({ outage: result });
}
break;
process.exit();
default:
console.error('Unknown command:', message.command);
break;
process.exit();
}
});