Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions ferrum_streaming_control_technology/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
32 changes: 16 additions & 16 deletions ferrum_streaming_control_technology/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ferrum_streaming_control_technology/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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"
}
}