Skip to content

Commit 8b35952

Browse files
committed
errata
1 parent 3a97a39 commit 8b35952

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/server/Utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,18 @@ export class Utils {
134134
}
135135

136136
public static async initFileLock(): Promise<void> {
137+
try {
138+
fs.mkdirSync(Utils.PathToFileLock);
139+
} catch (e) {}
140+
137141
const pp = `${Utils.PathToFileLock}/${Config.getInstance().getServerPort()}`;
138142
try {
139143
if (fs.existsSync(pp)) {
140144
fs.rmdirSync(pp, { recursive: true });
141145
}
142146
fs.mkdirSync(pp);
143147
} catch (e) {
144-
console.log(e);
148+
console.error(e);
145149
}
146150
}
147151

0 commit comments

Comments
 (0)