changed the loop break condition to exit loop only when no events are returned
@@ -420,7 +420,7 @@ impl Drop for SelectorInner {
}
}
- if events_num < 1024 {
+ if events_num == 0 {
// continue looping until all completion statuses have been drained
break;
}
