Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 3e333c3

Browse files
authored
修正 拼写错误
1 parent e9714ba commit 3e333c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/entity/instance/instance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import InstanceConfig from "./Instance_config";
2828
import StorageSubsystem from "../../common/system_storage";
2929
import { LifeCycleTaskManager } from "./life_cycle";
3030
import { PresetCommandManager } from "./preset";
31-
import FuntionDispatcher from "../commands/dispatcher";
31+
import FunctionDispatcher from "../commands/dispatcher";
3232
import { IInstanceProcess } from "./interface";
3333
import StartCommand from "../commands/start";
3434
import { 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

Comments
 (0)