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 --- include/inspsocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/inspsocket.h b/include/inspsocket.h index f094701c0..af93baa56 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -332,7 +332,7 @@ class CoreExport BufferedSocket : public EventHandler * returns or linefeeds are appended to the string. * @param data The data to send */ - virtual int Write(const std::string &data); + virtual void Write(const std::string &data); /** * If your socket is a listening socket, when a new -- cgit v1.2.3