fix(lib/plugins): compile error because arrow async function
This commit is contained in:
parent
825f29ce52
commit
5bde44a14c
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ export async function stopPlugin(plugin: AnyPlugin) {
|
||||||
* Runs all cleanup functions registered by a plugin.
|
* Runs all cleanup functions registered by a plugin.
|
||||||
*/
|
*/
|
||||||
async function cleanupPlugin(plugin: AnyPlugin, meta: InternalPluginMeta) {
|
async function cleanupPlugin(plugin: AnyPlugin, meta: InternalPluginMeta) {
|
||||||
const handleStopError = async (e: unknown) => {
|
async function handleStopError(e: unknown) {
|
||||||
// Some cleanup was unsuccessful, so we need to reload the app
|
// Some cleanup was unsuccessful, so we need to reload the app
|
||||||
plugin.flags |= Flag.ReloadRequired
|
plugin.flags |= Flag.ReloadRequired
|
||||||
return handlePluginError(e, plugin)
|
return handlePluginError(e, plugin)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue