From ca794b158ced2b9930aced8702c42362bcd6d1ae Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 21 Jun 2017 08:32:41 +0200 Subject: [PATCH] Ensure we correctly handle deregister while still in the whenReady(...) method and using kqueue --- Sources/Sockets/Selector.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/Sockets/Selector.swift b/Sources/Sockets/Selector.swift index 376a76cb7..7f21633f7 100644 --- a/Sources/Sockets/Selector.swift +++ b/Sources/Sockets/Selector.swift @@ -295,8 +295,11 @@ public final class Selector { for i in 0..