mirror of
https://github.com/jcreek/denBot.git
synced 2026-07-13 02:43:46 +00:00
fix(*): Missed empty queue check for when a player leaves a queue they were the only one in
This commit is contained in:
@@ -111,7 +111,7 @@ function generateRandomCode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkQueue(message) {
|
function checkQueue(message) {
|
||||||
if (playerQueue.length === config.maxqueuesize || playerQueue.length == playerVotes.length) {
|
if (playerQueue.length === config.maxqueuesize || (playerQueue.length > 0 && playerQueue.length == playerVotes.length)) {
|
||||||
// Queue is full
|
// Queue is full
|
||||||
logger.log('info', 'Queue is full');
|
logger.log('info', 'Queue is full');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user