chore(lib/plugins): set arrays lengths to zero to reset states
This commit is contained in:
parent
28f8c02869
commit
fca5dd1559
1 changed files with 2 additions and 2 deletions
|
|
@ -515,8 +515,8 @@ export async function stopPlugin(plugin: AnyPlugin) {
|
|||
// Reset state
|
||||
plugin.api = undefined
|
||||
meta.apiLevel = PluginApiLevel.None
|
||||
meta.promises = []
|
||||
meta.cleanups = []
|
||||
meta.promises.length = 0
|
||||
meta.cleanups.length = 0
|
||||
plugin.status = 0
|
||||
|
||||
pEmitter.emit('stopped', plugin)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue