From 90fb7c511fb6fc5c917d6738eca25961a52c8a9f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jul 2020 07:33:28 +0100 Subject: Fix the case of getError/getSendQSize and rewrite the doc comments. --- src/modules/m_spanningtree/treesocket1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_spanningtree/treesocket1.cpp') diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index c3b1a9f21..64dd3d2b8 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -93,7 +93,7 @@ TreeSocket::TreeSocket(int newfd, ListenSocket* via, irc::sockets::sockaddrs* cl iohookprovref->OnAccept(this, client, server); // IOHook could have encountered a fatal error, e.g. if the TLS ClientHello was already in the queue and there was no common TLS version - if (!getError().empty()) + if (!GetError().empty()) { TreeSocket::OnError(I_ERR_OTHER); return; @@ -157,7 +157,7 @@ void TreeSocket::OnConnected() void TreeSocket::OnError(BufferedSocketError e) { ServerInstance->SNO.WriteGlobalSno('l', "Connection to '\002%s\002' failed with error: %s", - linkID.c_str(), getError().c_str()); + linkID.c_str(), GetError().c_str()); LinkState = DYING; Close(); } @@ -226,7 +226,7 @@ void TreeSocket::OnDataReady() SendError(ex.GetReason() + " - check the log file for details"); } - if (!getError().empty()) + if (!GetError().empty()) break; } if (LinkState != CONNECTED && recvq.length() > 4096) -- cgit v1.3.1-10-gc9f91