Fix duplicate messages when a server connection errors.

This commit is contained in:
Sadie Powell 2022-02-01 11:06:21 +00:00
parent 63aa0a11e0
commit 3ff3810ca1

View File

@ -419,7 +419,7 @@ void TreeSocket::Close()
// then propagate a netsplit to all peers.
if (MyRoot)
MyRoot->SQuit(getError(), true);
else
ServerInstance->SNO->WriteGlobalSno('l', "Connection to '\002%s\002' failed.", linkID.c_str());
time_t server_uptime = ServerInstance->Time() - this->age;