diff options
| author | 2020-07-20 07:33:28 +0100 | |
|---|---|---|
| committer | 2020-07-20 07:36:44 +0100 | |
| commit | 90fb7c511fb6fc5c917d6738eca25961a52c8a9f (patch) | |
| tree | a64bce85570e572cc768a7f7d4abdfa89a526512 /src/modules/m_spanningtree/treesocket1.cpp | |
| parent | Split OnSetEndPoint into two events. (diff) | |
Fix the case of getError/getSendQSize and rewrite the doc comments.
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/treesocket1.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
