remove config save, its unnecessary

This commit is contained in:
Evert Prants 2021-10-02 12:32:56 +03:00
parent 22a1f2c1fa
commit b90cca7a12
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
"name": "irc", "name": "irc",
"description": "IRC Service for Squeebot 3", "description": "IRC Service for Squeebot 3",
"tags": ["service", "irc"], "tags": ["service", "irc"],
"version": "1.1.2", "version": "1.1.3",
"dependencies": ["control?"], "dependencies": ["control?"],
"npmDependencies": [] "npmDependencies": []
} }

View File

@ -313,9 +313,8 @@ class IRCServicePlugin extends Plugin {
unloadEventHandler(plugin: string | Plugin): void { unloadEventHandler(plugin: string | Plugin): void {
if (plugin === this.name || plugin === this) { if (plugin === this.name || plugin === this) {
logger.debug('[%s]', this.name, 'shutting down..'); logger.debug('[%s]', this.name, 'shutting down..');
this.config.save().then(() => this.service!.stopAll().then(() =>
this.service!.stopAll().then(() => this.emit('pluginUnloaded', this));
this.emit('pluginUnloaded', this)));
} }
} }
} }

View File

@ -3,7 +3,7 @@
"plugins": [ "plugins": [
{ {
"name": "irc", "name": "irc",
"version": "1.1.2" "version": "1.1.3"
}, },
{ {
"name": "ircprototest", "name": "ircprototest",