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:
+1
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user