mirror of
https://github.com/jwetzell/aas-js.git
synced 2026-08-25 14:59:06 +00:00
clear update timeout on interrupt signal
This commit is contained in:
@@ -111,6 +111,7 @@ const initializeInterval = setInterval(() => {
|
|||||||
|
|
||||||
process.on('SIGINT', () => {
|
process.on('SIGINT', () => {
|
||||||
console.log('app: shutting down');
|
console.log('app: shutting down');
|
||||||
|
clearTimeout(updateTimeout);
|
||||||
clearInterval(initializeInterval);
|
clearInterval(initializeInterval);
|
||||||
if (ws) {
|
if (ws) {
|
||||||
if (ws.clients) {
|
if (ws.clients) {
|
||||||
|
|||||||
Reference in New Issue
Block a user