diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/socket.c | 4 |
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. |