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() {
|
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"))
|
||||||
|
Loading…
Reference in New Issue
Block a user