nicer connected check
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ if (withAudio) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const server = http.createServer((req, res) => {
|
const server = http.createServer((req, res) => {
|
||||||
if (s.ticket.every((x) => x == 0)) {
|
if (!s.connected) {
|
||||||
res.writeHead(400);
|
res.writeHead(400);
|
||||||
res.end("Nothing online");
|
res.end("Nothing online");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user