Fix: [Network] don't rebuild the host-list during iterating the list (#9240)
Additionally, only rebuild it when we added a new manual server, as otherwise it is a noop anyway.
This commit is contained in:
@@ -830,6 +830,7 @@ public:
|
||||
if (!StrEmpty(str)) {
|
||||
strecpy(_settings_client.network.connect_to_ip, str, lastof(_settings_client.network.connect_to_ip));
|
||||
NetworkAddServer(str);
|
||||
NetworkRebuildHostList();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user