Skip to content

Commit fb59cd1

Browse files
authored
Merge pull request #2181 from jolting/patch-2
Remove an unnecessary while (true)
2 parents 2ece58a + 60b63ed commit fb59cd1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/zmq.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,15 +941,14 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
941941
timeout = end - now;
942942

943943
// Wait for events.
944-
while (true) {
944+
{
945945
int rc = poll (pollfds, nitems_, timeout);
946946
if (rc == -1 && errno == EINTR) {
947947
if (pollfds != spollfds)
948948
free (pollfds);
949949
return -1;
950950
}
951951
errno_assert (rc >= 0);
952-
break;
953952
}
954953
// Check for the events.
955954
for (int i = 0; i != nitems_; i++) {

0 commit comments

Comments
 (0)