nicer connected check

This commit is contained in:
DavidVentura
2024-01-31 12:14:20 +01:00
parent 0b8c3a1cc5
commit eecae5c9bf
+1 -1
View File
@@ -26,7 +26,7 @@ if (withAudio) {
}
const server = http.createServer((req, res) => {
if (s.ticket.every((x) => x == 0)) {
if (!s.connected) {
res.writeHead(400);
res.end("Nothing online");
return;