nicer connected check
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user