Skip to content

Commit

Permalink
Fixed dequeue events
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed May 13, 2023
1 parent c67494e commit 02fd388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Socket/SocketManager/AsyncSocketManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 02fd388

Please sign in to comment.