mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-05 04:37:52 +01:00
Minor code cleanup
This commit is contained in:
@@ -125,10 +125,10 @@ void zmq::poll_t::loop ()
|
||||
|
||||
// Wait for events.
|
||||
int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1);
|
||||
if (rc == -1 && errno == EINTR)
|
||||
if (rc == -1) {
|
||||
errno_assert (errno == EINTR);
|
||||
continue;
|
||||
errno_assert (rc != -1);
|
||||
|
||||
}
|
||||
|
||||
// If there are no events (i.e. it's a timeout) there's no point
|
||||
// in checking the pollset.
|
||||
|
||||
Reference in New Issue
Block a user