Fix DDNet server browser to refresh only once on start, not twice

This commit is contained in:
def 2016-05-10 12:40:33 +02:00
parent fe3e05cee5
commit 2fc2515e0f

View file

@ -1233,6 +1233,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket)
// do decompression of serverlist
if (uncompress((Bytef*)aBuf, &DstLen, (Bytef*)pComp, CompLength) == Z_OK && (int)DstLen == PlainLength)
{
aBuf[DstLen] = '\0';
bool ListChanged = true;
IOHANDLE File = m_pStorage->OpenFile("ddnet-servers.json", IOFLAG_READ, IStorage::TYPE_SAVE);