mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-07 21:21:52 +00:00
Save cached accessories to persist storage when shutting down homebridge.
This commit is contained in:
@@ -30,7 +30,9 @@ module.exports = function() {
|
||||
process.on(signal, function () {
|
||||
log.info("Got %s, shutting down Homebridge...", signal);
|
||||
|
||||
// FIXME: Shut down server cleanly
|
||||
// Save cached accessories to persist storage.
|
||||
server._updateCachedAccessories();
|
||||
|
||||
process.exit(128 + signals[signal]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user