diff options
author | Sadie Powell <sadie@witchery.services> | 2021-04-16 22:08:29 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-04-16 22:46:11 +0100 |
commit | c00ecc5e024251213a71673a63efe24e10d0cdbe (patch) | |
tree | ba28b6cdd4621c71392ed6c369b34a1fc81f99ee | |
parent | cdd9b6f11bbd35740b82bfd321f195cf9a8f30ce (diff) |
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.
-rw-r--r-- | src/uplink.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp index 7e8a15860..785ef88cd 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -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(); |