From 1737869ae980549454f4e3cc4d365c1aa3b74d5a Mon Sep 17 00:00:00 2001 From: stefanocasazza Date: Thu, 25 Feb 2016 13:31:28 +0100 Subject: [PATCH] fix --- src/ulib/notifier.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ulib/notifier.cpp b/src/ulib/notifier.cpp index a4ea4d7f..4c3ac7ee 100644 --- a/src/ulib/notifier.cpp +++ b/src/ulib/notifier.cpp @@ -1022,11 +1022,9 @@ void UNotifier::callForAllEntryDynamic(bPFpv function) U_INTERNAL_DUMP("fd = %d op_mask = %B", item->fd, item->op_mask) - if (item->fd == -1 || - function(item)) - { - handlerDelete(item); - } + U_INTERNAL_ASSERT_MAJOR(item->fd, 0) + + if (function(item)) handlerDelete(item); } while (hi_map_fd->next()); }