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 {
|
} 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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue