mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一堆错误
This commit is contained in:
1 parent
2d3cee7753
commit
b5e3b81c17
23 files changed
+120
-159
No files matched your search
+4
-1
@@ -96,7 +96,10 @@ async function load() {
|
||||
process.stdin.setEncoding('utf8');
|
||||
process.stdin.on('data', (input) => {
|
||||
if (input[0] === '@') {
|
||||
cluster.workers[1].send({ event: 'run', command: input.substr(1, input.length - 1) });
|
||||
for (const i in cluster.workers) {
|
||||
cluster.workers[i].send({ event: 'run', command: input.substr(1, input.length - 1) });
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
executeCommand(input);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user