find available blinksticks or exit before server start
This commit is contained in:
parent
b3b123bea8
commit
714a89fb67
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ const logger = require('./libs/logger.js');
|
||||||
const util = require('./libs/util.js');
|
const util = require('./libs/util.js');
|
||||||
const cli = require('./libs/cli.js');
|
const cli = require('./libs/cli.js');
|
||||||
const server = require('./libs/server.js');
|
const server = require('./libs/server.js');
|
||||||
|
const blinkstick = require('./libs/blinkstick.js');
|
||||||
const packageJSON = require('./package');
|
const packageJSON = require('./package');
|
||||||
|
|
||||||
const INTERRUPTS = ['SIGINT', 'SIGTERM'];
|
const INTERRUPTS = ['SIGINT', 'SIGTERM'];
|
||||||
|
@ -24,6 +25,7 @@ async function main() {
|
||||||
if (await cli.handleArguments()) {
|
if (await cli.handleArguments()) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
await blinkstick.findBlinkstick();
|
||||||
logger.info(await server.start());
|
logger.info(await server.start());
|
||||||
server.handleRequests();
|
server.handleRequests();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue