diff --git a/Sources/Socket/SocketManager/AsyncSocketManager.swift b/Sources/Socket/SocketManager/AsyncSocketManager.swift index cb1cca8..cb694df 100644 --- a/Sources/Socket/SocketManager/AsyncSocketManager.swift +++ b/Sources/Socket/SocketManager/AsyncSocketManager.swift @@ -484,12 +484,12 @@ fileprivate extension AsyncSocketManager.SocketState { _ event: FileEvents, notification: Socket.Event ) { + dequeue(event)?.resume() guard pendingEvents.contains(event) == false else { return } pendingEvents.insert(event) continuation.yield(notification) - dequeue(event)?.resume() } }