We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705d332 commit ee01188Copy full SHA for ee01188
FlyingSocks/Sources/EventQueue+ePoll.swift
@@ -87,7 +87,7 @@ struct ePoll: EventQueue {
87
throw SocketError.makeFailed("epoll_ctl EPOLL_CTL_MOD")
88
}
89
90
- } else {
+ } else if !events.isEmpty {
91
guard epoll_ctl(file.rawValue, EPOLL_CTL_ADD, socket.rawValue, &event) != -1 else {
92
throw SocketError.makeFailed("epoll_ctl EPOLL_CTL_ADD")
93
0 commit comments