From 86025bdac7053d118b0a2eba2e3ae0a63e337eb4 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 27 Aug 2020 20:33:22 +0800 Subject: [PATCH] Fix internalOnDisable --- .../mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt index 89084cdd5..3f89bb0a8 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt @@ -80,7 +80,7 @@ internal abstract class JvmPluginInternal( internal fun internalOnDisable() { firstRun = false kotlin.runCatching { - onLoad() + onDisable() }.fold( onSuccess = { cancel(CancellationException("plugin disabled"))