Nambers / MiraiCP

c++ SDK of Mirai

Home Page:https://eritque-arcus.tech/MiraiCP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

重载插件后,先前的计时器会被保留

ofbwyx opened this issue · comments

Code of Conduct

  • I conform

问题描述

插件代码代码里的 schedule,在用 reload 重新加载插件后还会继续生效。

日志

No response

版本

2.13.2

组件

不属于上述项或我不知道属于哪一项

编译器

Microsoft Visual C++ (MSVC)

系统

Windows

架构

x86-64/amd64

@Antares0982 我在代码里是先 schedule 一次,然后在 TimeOutEvent 里边再 schedule。但是每次 reloadPlugin 时候,之前写的插件的计时还会留着,继续发 TimeOutEvent,要结束进程再开才能没。(不过如果是特性那没事了