Deleting multiplayer match once host disconnects

Hi, I’m using a heavily modified version of the unity NetworkManagerHUD script and i’m running into an issue where a match can end and have no players in it, and yet the match shows up on the matchmaker match list and players can join the empty game (only to have a long delay with no connection). I’ve added the DropConnection() method on disconnects to remove the matches and this fix has helped the issue but hasn’t solved it. For instance if a player shuts down the game without disconnecting then the code will not run and a empty game will linger.

I am aware unity automatically clears up empty matches after 30 seconds, but frankly this is too long and will result in players having to wait to join a dud game. I want to be able to clear up these matches from the list BEFORE the player joins. I tried checking for number of players in the match, but it shows up as 1 even if there are no players connected in it. What condition can I check that is present in an empty match, but not present in a match where there is a host waiting for someone to connect?

for (int i = 0; i < manager.matches.Count; i++)
{
var match = manager.matches ;
//match.currentSize (ALWAYS RETURNS 1)
if (match.name == password) {
exists = true;
manager.matchMaker.JoinMatch (match.networkId, “”, “”, “”, 0, 0, manager.OnMatchJoined);
}
}

bump for dev response