fix: 修复关闭插件时task未找到的问题
This commit is contained in:
		
							
								
								
									
										7
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								pom.xml
									
									
									
									
									
								
							@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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 () {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user