Unity MasterServer RegistrationSucceeded but Host List Empty

I connect to the MasterServer and Register my server on initialization, I also receive callbacks for RegistrationSucceeded and HostListReceived.

The problem is that despite this, my host list is always empty when I poll it every frame.

Is anyone familiar with this scenario?

My Refresh function :

	void RefreshServerList()
	{
		if (MasterServer.PollHostList().Length != 0)
		{
			m_HostList = MasterServer.PollHostList();
			Debug.Log("RefreshServerList:"+m_HostList.Length);
			
			foreach (HostData data in m_HostList)
			{
				Debug.Log("HostData:"+data.ToString());
			}
		}	
		else
		{
			if (m_HostList == null)
			{
				m_HostList = MasterServer.PollHostList();
			}
			Debug.Log("RefreshServerList:NoHosts");
		}
	}

If anyone was wondering I figured out that I was misunderstanding the use of PollHostList(). Based on the examples given on the documentation page, I thought you only did RequestHostList() once and did PollHostList() on each subsequent frame.

RequestHostList() empties the stored HostData array until the OnMasterServerMessage callback triggers with a HostListReceived event. Within that time-frame, PollHostList() will always return a blank array.

So in order to solve my problem, I made sure to only do m_HostList = MasterServer.PollHostList() AFTER I received the HostListReceived callback.