We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a97a39 commit 8b35952Copy full SHA for 8b35952
src/server/Utils.ts
@@ -134,14 +134,18 @@ export class Utils {
134
}
135
136
public static async initFileLock(): Promise<void> {
137
+ try {
138
+ fs.mkdirSync(Utils.PathToFileLock);
139
+ } catch (e) {}
140
+
141
const pp = `${Utils.PathToFileLock}/${Config.getInstance().getServerPort()}`;
142
try {
143
if (fs.existsSync(pp)) {
144
fs.rmdirSync(pp, { recursive: true });
145
146
fs.mkdirSync(pp);
147
} catch (e) {
- console.log(e);
148
+ console.error(e);
149
150
151
0 commit comments