opt: update kernelsu.js

This commit is contained in:
KOWX712
2025-08-28 21:34:38 +08:00
parent 422d05e97b
commit c8dbbce80c

View File

@@ -104,7 +104,7 @@ export function spawn(command, args = [], options = {}) {
ksu.spawn(command, JSON.stringify(args), JSON.stringify(options), callbackName);
} else {
setTimeout(() => {
child.emit("error", "ksu is not defined");
child.stderr.emit("data", "ksu is not defined");
child.emit("exit", 1);
}, 0);
}