fix: 修复关闭插件时task未找到的问题

This commit is contained in:
502647092 2017-10-16 13:29:00 +08:00
parent 7dda35f614
commit c777f2b957
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>MiaoScript</artifactId>
<version>1.0</version>
<version>1.1</version>
<developers>
<developer>
<id>502647092</id>
@ -80,6 +80,11 @@
</ciManagement>
<properties>
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
<update.changes>
§617-10-16 §afix: 修复关闭MiaoScript时task异常;
§617-10-15 §6alpha: 第一个版本发布;
</update.changes>
<update.changelog></update.changelog>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

View File

@ -217,7 +217,7 @@ exports.enable = function () {
exports.disable = function () {
checkAndGet(arguments).forEach(function (p) runAndCatch(p, p.disable, function(){
event.disable(p);
task.cancel();
// task.cancel();
}));
};
exports.reload = function () {