mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Fix internalOnDisable
This commit is contained in:
parent
f47d1915ab
commit
86025bdac7
@ -80,7 +80,7 @@ internal abstract class JvmPluginInternal(
|
||||
internal fun internalOnDisable() {
|
||||
firstRun = false
|
||||
kotlin.runCatching {
|
||||
onLoad()
|
||||
onDisable()
|
||||
}.fold(
|
||||
onSuccess = {
|
||||
cancel(CancellationException("plugin disabled"))
|
||||
|
Loading…
Reference in New Issue
Block a user