remove config save, its unnecessary
This commit is contained in:
parent
1dac4552d6
commit
e3a918aecd
@ -3,11 +3,11 @@
|
||||
"plugins": [
|
||||
{
|
||||
"name": "syncplay",
|
||||
"version": "1.0.1"
|
||||
"version": "1.0.2"
|
||||
},
|
||||
{
|
||||
"name": "syncplaystatus",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.2"
|
||||
}
|
||||
],
|
||||
"typescript": true
|
||||
|
@ -2,7 +2,7 @@
|
||||
"main": "plugin.js",
|
||||
"name": "syncplay",
|
||||
"description": "Syncplay Service for Squeebot 3",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"tags": ["service", "syncplay"],
|
||||
"dependencies": ["control?"],
|
||||
"npmDependencies": []
|
||||
|
@ -362,9 +362,8 @@ class SyncplayServicePlugin extends Plugin {
|
||||
@EventListener('pluginUnload')
|
||||
public unloadEventHandler(plugin: string | Plugin): void {
|
||||
if (plugin === this.name || plugin === this) {
|
||||
this.config.save().then(() =>
|
||||
this.service?.stopAll().then(() =>
|
||||
this.emit('pluginUnloaded', this)));
|
||||
this.emit('pluginUnloaded', this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"main": "plugin.js",
|
||||
"name": "syncplaystatus",
|
||||
"description": "Display status of a Syncplay protocol connection",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"tags": ["syncplay", "commands", "status"],
|
||||
"dependencies": ["syncplay", "simplecommands"],
|
||||
"npmDependencies": []
|
||||
|
@ -31,8 +31,7 @@ class SPSPlugin extends Plugin {
|
||||
@EventListener('pluginUnload')
|
||||
public unloadEventHandler(plugin: string | Plugin): void {
|
||||
if (plugin === this.name || plugin === this) {
|
||||
this.config.save().then(() =>
|
||||
this.emit('pluginUnloaded', this));
|
||||
this.emit('pluginUnloaded', this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user