mirror of
https://github.com/lmstudio-ai/lms.git
synced 2025-09-17 09:48:42 +08:00
Remove log
This commit is contained in:
@ -42,7 +42,9 @@ async function waitForCtlFileClear(
|
||||
) {
|
||||
for (let i = 0; i < maxAttempts; i++) {
|
||||
await new Promise(resolve => setTimeout(resolve, checkIntervalMs));
|
||||
const isEmpty = (await readFile(serverCtlPath, "utf-8")).length === 0;
|
||||
const content = await readFile(serverCtlPath, "utf-8");
|
||||
const isEmpty = content.length === 0;
|
||||
|
||||
if (isEmpty) {
|
||||
logger.debug(`Attempt ${i + 1}: File has been cleared`);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user