mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[Master] Update server via operator= instead map::insert
This commit is contained in:
parent
b677a0455d
commit
d40a55a748
@ -138,7 +138,7 @@ void MasterServer::Thread()
|
|||||||
else if (pma.GetFunc() == PacketMasterAnnounce::FUNCTION_ANNOUNCE)
|
else if (pma.GetFunc() == PacketMasterAnnounce::FUNCTION_ANNOUNCE)
|
||||||
{
|
{
|
||||||
cout << "Updated";
|
cout << "Updated";
|
||||||
iter = servers.insert({packet->systemAddress, server}).first;
|
iter->second = server;
|
||||||
keepAliveFunc();
|
keepAliveFunc();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user