Queue system should get a rewrite as there is some uncommon (but still some) issues with it in regards to players queuing to each other. Some players straight up getting a match without being in the queue, and so on.
Proposal
Steer away from relying on DB calls (this will also save memory and other resources)
Use global variables
Use a global timer to check for matchups
If there is no one in queue, stop the global timer
Queue system should get a rewrite as there is some uncommon (but still some) issues with it in regards to players queuing to each other. Some players straight up getting a match without being in the queue, and so on.
Proposal