From 86c2b7abf7f8627c9f765b12ec334d1541dcfb61 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 1 Apr 2008 18:56:31 +0000 Subject: Remove call to FlushWriteBuffer from BufferedSocket::Write(), this means we don't try write() pointlessly when we may very well not (chewing CPU), and instead waits for the socketengine to tell us we can write. Tested, works fine. (nothing used this return value anyway) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9247 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http_client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/m_http_client.cpp') diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index ef3cf5c33..ef036f3f2 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -292,7 +292,9 @@ bool HTTPSocket::OnConnected() this->status = HTTP_REQSENT; - return this->Write(request); + this->Write(request); + + return true; } bool HTTPSocket::OnDataReady() -- cgit v1.3.1-10-gc9f91