From 714a89fb675175a801e0604aa88a0bb6b1b0d9bb Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 25 Feb 2022 22:58:47 +0100 Subject: [PATCH] find available blinksticks or exit before server start --- blinky.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blinky.js b/blinky.js index 6e6d676..7fe6d59 100644 --- a/blinky.js +++ b/blinky.js @@ -2,6 +2,7 @@ const logger = require('./libs/logger.js'); const util = require('./libs/util.js'); const cli = require('./libs/cli.js'); const server = require('./libs/server.js'); +const blinkstick = require('./libs/blinkstick.js'); const packageJSON = require('./package'); const INTERRUPTS = ['SIGINT', 'SIGTERM']; @@ -24,6 +25,7 @@ async function main() { if (await cli.handleArguments()) { exit(); } + await blinkstick.findBlinkstick(); logger.info(await server.start()); server.handleRequests(); }