1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 08:16:39 +02:00

Process writes to the uplink socket before quitting in all cases.

This allows any error that might have been sent to the IRCd to
actually be sent.
This commit is contained in:
Sadie Powell
2021-04-16 22:08:29 +01:00
parent cdd9b6f11b
commit c00ecc5e02
+1 -2
View File
@@ -94,14 +94,13 @@ UplinkSocket::~UplinkSocket()
}
IRCD->SendSquit(Me, Anope::QuitReason);
this->ProcessWrite(); // Write out the last bit
}
for (unsigned i = Me->GetLinks().size(); i > 0; --i)
if (!Me->GetLinks()[i - 1]->IsJuped())
Me->GetLinks()[i - 1]->Delete(Me->GetName() + " " + Me->GetLinks()[i - 1]->GetName());
this->ProcessWrite(); // Write out the last bit
UplinkSock = NULL;
Me->Unsync();