summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 8f54794a2..86851fc50 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -66,7 +66,7 @@ UplinkSocket::UplinkSocket() : Socket(-1, Config->Uplinks[Anope::CurrentUplink].
UplinkSocket::~UplinkSocket()
{
- if (!error)
+ if (!error && !Anope::Quitting)
{
this->OnError("");
Module *protocol = ModuleManager::FindFirstOf(PROTOCOL);