mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix DDNet server browser to refresh only once on start, not twice
This commit is contained in:
parent
fe3e05cee5
commit
2fc2515e0f
|
@ -1233,6 +1233,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket)
|
||||||
// do decompression of serverlist
|
// do decompression of serverlist
|
||||||
if (uncompress((Bytef*)aBuf, &DstLen, (Bytef*)pComp, CompLength) == Z_OK && (int)DstLen == PlainLength)
|
if (uncompress((Bytef*)aBuf, &DstLen, (Bytef*)pComp, CompLength) == Z_OK && (int)DstLen == PlainLength)
|
||||||
{
|
{
|
||||||
|
aBuf[DstLen] = '\0';
|
||||||
bool ListChanged = true;
|
bool ListChanged = true;
|
||||||
|
|
||||||
IOHANDLE File = m_pStorage->OpenFile("ddnet-servers.json", IOFLAG_READ, IStorage::TYPE_SAVE);
|
IOHANDLE File = m_pStorage->OpenFile("ddnet-servers.json", IOFLAG_READ, IStorage::TYPE_SAVE);
|
||||||
|
|
Loading…
Reference in a new issue