From f4c6f42c386f810a965b356de2d8829055193398 Mon Sep 17 00:00:00 2001 From: shbatm Date: Sun, 15 Oct 2017 18:44:11 -0500 Subject: [PATCH] Added default implementation of stop() function. --- modules/node_modules/node_helper/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/node_modules/node_helper/index.js b/modules/node_modules/node_helper/index.js index 37c3e2cb..7a8818be 100644 --- a/modules/node_modules/node_helper/index.js +++ b/modules/node_modules/node_helper/index.js @@ -23,6 +23,17 @@ NodeHelper = Class.extend({ console.log("Starting module helper: " + this.name); }, + /* stop() + * Called when the MagicMirror server receives a `SIGINT` + * Close any open connections, stop any sub-processes and + * gracefully exit the module. + * + */ + stop: function() { + console.log("Stopping module helper: " + this.name); + }, + + /* socketNotificationReceived(notification, payload) * This method is called when a socket notification arrives. *