avoid hang when creating room

This commit is contained in:
peterino2 2026-02-03 08:44:12 -08:00
parent 19b1066e73
commit a90a9f0a0d
1 changed files with 2 additions and 9 deletions

View File

@ -418,15 +418,8 @@ serve({
} }
} }
} else { } else {
// Default to full library // Default to empty playlist
tracks = library.getAllTracks() tracks = [];
.filter(t => t.duration > 0)
.map(t => ({
id: t.id,
filename: t.filename,
title: t.title || t.filename.replace(/\.[^.]+$/, ""),
duration: t.duration,
}));
} }
const channelId = generateChannelId(); const channelId = generateChannelId();