fix iochannel for hangup signals

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@848 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-05-11 21:38:16 +00:00
parent af54f9fcc7
commit eecc04cf28

View file

@ -91,7 +91,7 @@ static void callback(pa_mainloop_api* m, pa_io_event *e, int fd, pa_io_event_fla
assert(fd >= 0); assert(fd >= 0);
assert(userdata); assert(userdata);
if ((f & (PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR)) & !io->hungup) { if ((f & (PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR)) && !io->hungup) {
io->hungup = 1; io->hungup = 1;
changed = 1; changed = 1;
} }