summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-04-05 16:48:21 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2013-04-08 14:57:32 +0200
commit911dbe6736c6da2bab1be3be14021cf5747ae860 (patch)
tree53b6140e6b1928ab4568551467fb8dc36d0df919
parent71f81294e8058781b3fd1282816b39d0eba1f985 (diff)
socket-server: Make the new channel low-delay, not the listening one
I don't know if it matters a lot, but most certainly it must be the new channel that's supposed to be made low-delay, not the existing listening socket, right? Signed-off-by: David Henningsson <david.henningsson@canonical.com>
-rw-r--r--src/pulsecore/socket-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/socket-server.c b/src/pulsecore/socket-server.c
index 0b0b2a5c..74db9e32 100644
--- a/src/pulsecore/socket-server.c
+++ b/src/pulsecore/socket-server.c
@@ -133,9 +133,9 @@ static void callback(pa_mainloop_api *mainloop, pa_io_event *e, int fd, pa_io_ev
/* There should be a check for socket type here */
if (s->type == SOCKET_SERVER_IPV4)
- pa_make_tcp_socket_low_delay(fd);
+ pa_make_tcp_socket_low_delay(nfd);
else
- pa_make_socket_low_delay(fd);
+ pa_make_socket_low_delay(nfd);
pa_assert_se(io = pa_iochannel_new(s->mainloop, nfd, nfd));
s->on_connection(s, io, s->userdata);