mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-04-06 17:10:29 +08:00
fix: del err path check
This commit is contained in:
parent
a060540995
commit
56eb8c1640
@ -48,13 +48,6 @@ export class GoPtyProcessAdapter extends EventEmitter implements IInstanceProces
|
||||
}
|
||||
|
||||
private initNamedPipe() {
|
||||
if (!fs.existsSync(this.pipeName)) {
|
||||
throw new Error(
|
||||
$t("TXT_CODE_9d1d244f", {
|
||||
pipeName: this.pipeName
|
||||
})
|
||||
);
|
||||
}
|
||||
const fd = fs.openSync(this.pipeName, "w");
|
||||
const writePipe = fs.createWriteStream("", { fd });
|
||||
writePipe.on("close", () => {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user