summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-06 17:08:25 -0500
committerAdam <Adam@anope.org>2013-04-06 17:08:25 -0500
commit32d1184c00bdb43d3cf892b721c2906b2ddc1a14 (patch)
treedb95cd69ee7fa08292d32a5c2b51c7593f6b7928 /src/uplink.cpp
parent6a46a08a85cdbb284306cea8477ed702cc1ecd49 (diff)
Use the return from BufferedSocket::ProcessRead() and don't just assume its true
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 085ef889b..f8841c58f 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -118,13 +118,13 @@ UplinkSocket::~UplinkSocket()
bool UplinkSocket::ProcessRead()
{
- BufferedSocket::ProcessRead();
+ bool b = BufferedSocket::ProcessRead();
for (Anope::string buf; (buf = this->GetLine()).empty() == false;)
{
Anope::Process(buf);
User::QuitUsers();
}
- return true;
+ return b;
}
void UplinkSocket::OnConnect()