From: Lennart Poettering Date: Thu, 11 May 2006 21:38:16 +0000 (+0000) Subject: fix iochannel for hangup signals X-Git-Tag: submit/2.0-panda/20130828.192557~3747 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eecc04cf282392afb624fb14ab4f6a564bab4875;p=profile%2Fivi%2Fpulseaudio-panda.git fix iochannel for hangup signals git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@848 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/polypcore/iochannel.c b/src/polypcore/iochannel.c index 623925a..aba0399 100644 --- a/src/polypcore/iochannel.c +++ b/src/polypcore/iochannel.c @@ -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(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; changed = 1; }