avoid hang when creating room
This commit is contained in:
parent
19b1066e73
commit
a90a9f0a0d
11
server.ts
11
server.ts
|
|
@ -418,15 +418,8 @@ serve({
|
|||
}
|
||||
}
|
||||
} else {
|
||||
// Default to full library
|
||||
tracks = library.getAllTracks()
|
||||
.filter(t => t.duration > 0)
|
||||
.map(t => ({
|
||||
id: t.id,
|
||||
filename: t.filename,
|
||||
title: t.title || t.filename.replace(/\.[^.]+$/, ""),
|
||||
duration: t.duration,
|
||||
}));
|
||||
// Default to empty playlist
|
||||
tracks = [];
|
||||
}
|
||||
|
||||
const channelId = generateChannelId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue