aboutsummaryrefslogtreecommitdiffstats
path: root/addons/ooh323c/src/oochannels.c
diff options
context:
space:
mode:
Diffstat (limited to 'addons/ooh323c/src/oochannels.c')
-rw-r--r--addons/ooh323c/src/oochannels.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/ooh323c/src/oochannels.c b/addons/ooh323c/src/oochannels.c
index a6045aa34..c4ac24871 100644
--- a/addons/ooh323c/src/oochannels.c
+++ b/addons/ooh323c/src/oochannels.c
@@ -1994,9 +1994,8 @@ OOBOOL ooChannelsIsConnectionOK(OOH323CallData *call, OOSOCKET sock)
return FALSE;
}
- if(FD_ISSET(sock, &readfds))
- {
- char buf[2];
+ if (pfds.events & POLLIN) {
+ char buf[2];
if(ooSocketRecvPeek(sock, (ASN1OCTET*) buf, 2) == 0)
{
OOTRACEWARN3("Broken pipe detected. (%s, %s)", call->callType,