fix(lib/plugins): compile error because arrow async function

This commit is contained in:
PalmDevs 2025-07-21 15:35:06 +07:00
parent 825f29ce52
commit 5bde44a14c
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -480,7 +480,7 @@ export async function stopPlugin(plugin: AnyPlugin) {
* Runs all cleanup functions registered by a plugin.
*/
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
plugin.flags |= Flag.ReloadRequired
return handlePluginError(e, plugin)