@@ -28,7 +28,7 @@ import InstanceConfig from "./Instance_config";
2828import StorageSubsystem from "../../common/system_storage" ;
2929import { LifeCycleTaskManager } from "./life_cycle" ;
3030import { PresetCommandManager } from "./preset" ;
31- import FuntionDispatcher from "../commands/dispatcher" ;
31+ import FunctionDispatcher from "../commands/dispatcher" ;
3232import { IInstanceProcess } from "./interface" ;
3333import StartCommand from "../commands/start" ;
3434import { configureEntityParams } from "../../common/typecheck" ;
@@ -112,13 +112,13 @@ export default class Instance extends EventEmitter {
112112 if ( cfg . type && cfg . type != this . config . type ) {
113113 if ( this . status ( ) != Instance . STATUS_STOP ) throw new Error ( "正在运行时无法修改此实例类型" ) ;
114114 configureEntityParams ( this . config , cfg , "type" , String ) ;
115- this . forceExec ( new FuntionDispatcher ( ) ) ;
115+ this . forceExec ( new FunctionDispatcher ( ) ) ;
116116 }
117117 // 若进程类型改变,则必须重置预设命令与生命周期事件
118118 if ( cfg . processType && cfg . processType !== this . config . processType ) {
119119 if ( this . status ( ) != Instance . STATUS_STOP ) throw new Error ( "正在运行时无法修改此实例进程类型" ) ;
120120 configureEntityParams ( this . config , cfg , "processType" , String ) ;
121- this . forceExec ( new FuntionDispatcher ( ) ) ;
121+ this . forceExec ( new FunctionDispatcher ( ) ) ;
122122 }
123123 configureEntityParams ( this . config , cfg , "nickname" , String ) ;
124124 configureEntityParams ( this . config , cfg , "startCommand" , String ) ;
0 commit comments