diff --git a/ferrum_streaming_control_technology/index.js b/ferrum_streaming_control_technology/index.js index 71a9e3801..d9d652da3 100644 --- a/ferrum_streaming_control_technology/index.js +++ b/ferrum_streaming_control_technology/index.js @@ -115,18 +115,17 @@ FerrumStreamingControlTechnology.prototype.onStop = function () { var self = this; var defer = libQ.defer(); - try { - fsctService.stopFsct(); - } - catch (e) { - self.logger.error(e); - } - - // Once the Plugin has successfull stopped resolve the promise - defer.resolve(); - self.logger.info('FSCT Stopped'); + fsctService.stopFsct() + .then(function () { + self.logger.info("FSCT Stoped"); + defer.resolve(); + }) + .catch((err) => { + self.logger.error(err); + defer.reject(err); + }); - return libQ.resolve(); + return defer.promise; }; FerrumStreamingControlTechnology.prototype.onRestart = function () { diff --git a/ferrum_streaming_control_technology/package-lock.json b/ferrum_streaming_control_technology/package-lock.json index 19e615157..4d1ec8842 100644 --- a/ferrum_streaming_control_technology/package-lock.json +++ b/ferrum_streaming_control_technology/package-lock.json @@ -1,35 +1,35 @@ { "name": "ferrum_streaming_control_technology", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { "@hemspzoo/fsct-lib": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib/-/fsct-lib-0.2.9.tgz", - "integrity": "sha512-mvqSq/LIVtE5hSLnOk0pKSAv81iA7yAyRE9QPLN1AYyFV5ZbvH6xoC7mCAMnVtFt++FG/pudIEKaOg8x9N6wOA==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib/-/fsct-lib-0.2.12.tgz", + "integrity": "sha512-j6MkqLQnu6sjmEexsApjVIISVAkWT6TWBPImELT1vX8uWG9z/gCgh2HE5pmyG47sUU6qiiQYPySctQpmBpMMSw==", "requires": { - "@hemspzoo/fsct-lib-linux-arm-gnueabihf": "0.2.9", - "@hemspzoo/fsct-lib-linux-arm64-gnu": "0.2.9", - "@hemspzoo/fsct-lib-linux-x64-gnu": "0.2.9" + "@hemspzoo/fsct-lib-linux-arm-gnueabihf": "0.2.12", + "@hemspzoo/fsct-lib-linux-arm64-gnu": "0.2.12", + "@hemspzoo/fsct-lib-linux-x64-gnu": "0.2.12" } }, "@hemspzoo/fsct-lib-linux-arm-gnueabihf": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-arm-gnueabihf/-/fsct-lib-linux-arm-gnueabihf-0.2.9.tgz", - "integrity": "sha512-iaKkI+zoZ1qHtUyjdNSe672tJIkHcQ7hjMNDAzSXUnSN5FG9+vlHgSAHZvzPiM/1Nm+MaqAK3VrHKLETaMPlQg==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-arm-gnueabihf/-/fsct-lib-linux-arm-gnueabihf-0.2.12.tgz", + "integrity": "sha512-VRu/dUj52KLk5IHXitXfFQRTrNFv2hsfLgBWHqLMZk//Sy8PVQg1cC6QSnuxucD9RGBvjE1ekEzepfi6OWcqdA==", "optional": true }, "@hemspzoo/fsct-lib-linux-arm64-gnu": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-arm64-gnu/-/fsct-lib-linux-arm64-gnu-0.2.9.tgz", - "integrity": "sha512-gz6TyXtYeWXvJds1P942NpDcK6Zx5uTrYx6x6AGhXVX7U8tVooyEL1XvVgnyEy+Z+LA7mINnBju8TfGUknEZuA==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-arm64-gnu/-/fsct-lib-linux-arm64-gnu-0.2.12.tgz", + "integrity": "sha512-LcI1YaHtjOS/wxbqPrSlrYuR06t1p20jmCJZVWzmhh54dYLNCQ8Rm3IMfoFFpKxUOG5+NoUtpjBm6/xP0oZ3xg==", "optional": true }, "@hemspzoo/fsct-lib-linux-x64-gnu": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-x64-gnu/-/fsct-lib-linux-x64-gnu-0.2.9.tgz", - "integrity": "sha512-NJFkcOgGhKGEjaEc/L+ljpBWotuFKXtgFvD/LHHPAjizgCRMI7SacZUb7DAGaVw42z3wCfQsOmvGu7UCTRH6Sw==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@hemspzoo/fsct-lib-linux-x64-gnu/-/fsct-lib-linux-x64-gnu-0.2.12.tgz", + "integrity": "sha512-OLc8CjjPkPGtZmMz9OltG6qUBvR3v//4OUYi8NVgPvhe4FPybBE9qCYLFAZqWaTi+JregnpICSo33D1vEocg5Q==", "optional": true }, "balanced-match": { diff --git a/ferrum_streaming_control_technology/package.json b/ferrum_streaming_control_technology/package.json index a75116a3a..75ed3e920 100644 --- a/ferrum_streaming_control_technology/package.json +++ b/ferrum_streaming_control_technology/package.json @@ -1,6 +1,6 @@ { "name": "ferrum_streaming_control_technology", - "version": "1.0.1", + "version": "1.0.2", "description": "Plugin provides support for Ferrum Streaming Control Technology™ allowing DACs (e.g. Ferrum Wandla) to show current state of playback like title, artist and progress bar.", "main": "index.js", "scripts": { @@ -28,7 +28,7 @@ "buster" ], "details": "Plugin provides support for Ferrum Streaming Control Technology™ allowing DACs (e.g. Ferrum Wandla) to show current state of playback like title, artist and progress bar.", - "changelog": " * 1.0.0 - first published ™version" + "changelog": " * 1.0.2 - plugin with fsct-lib bumped to 0.2.12, version which supports first official FSCT release." }, "engines": { "node": ">=14.15.4 <15.0.0", @@ -38,6 +38,6 @@ "fs-extra": "^0.28.0", "kew": "^0.7.0", "v-conf": "^1.4.0", - "@hemspzoo/fsct-lib": "^0.2.9" + "@hemspzoo/fsct-lib": "^0.2.12" } }