From 3abdf2b76827de8031a20f0ca5ce26f513a27075 Mon Sep 17 00:00:00 2001 From: toms Date: Wed, 13 Dec 2006 16:09:13 +0000 Subject: 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 --- src/common/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/socket.c') 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. -- cgit v1.2.3-60-g2f50