Fix internalOnDisable

This commit is contained in:
Him188 2020-08-27 20:33:22 +08:00
parent f47d1915ab
commit 86025bdac7

View File

@ -80,7 +80,7 @@ internal abstract class JvmPluginInternal(
internal fun internalOnDisable() { internal fun internalOnDisable() {
firstRun = false firstRun = false
kotlin.runCatching { kotlin.runCatching {
onLoad() onDisable()
}.fold( }.fold(
onSuccess = { onSuccess = {
cancel(CancellationException("plugin disabled")) cancel(CancellationException("plugin disabled"))