summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-13 16:09:13 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-13 16:09:13 +0000
commit3abdf2b76827de8031a20f0ca5ce26f513a27075 (patch)
tree07d2d88d09ce861de18d7438c6dbbb119846359c /src
parent55b91a3d2af009472906cacdab807cade18de21f (diff)
downloadhercules-3abdf2b76827de8031a20f0ca5ce26f513a27075.tar.gz
hercules-3abdf2b76827de8031a20f0ca5ce26f513a27075.tar.bz2
hercules-3abdf2b76827de8031a20f0ca5ce26f513a27075.tar.xz
hercules-3abdf2b76827de8031a20f0ca5ce26f513a27075.zip
Modified flush_fifo so the code do what is written in the comment
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9489 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 19a2ecdea..7ee8ac53e 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -289,9 +289,9 @@ void flush_fifo(int fd, int lock)
return;
if (lock)
{ //Lock the thread until data is sent.
- set_nonblocking(fd, 1);
- send_from_fifo(fd);
set_nonblocking(fd, 0);
+ send_from_fifo(fd);
+ set_nonblocking(fd, 1);
return;
}
//Send without locking the thread.