Commit a343059a authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2041 from packetstash/select-fix-rebased

Copy instead of reference to a vector that gets reallocated.
parents b3bfa420 4019112a
......@@ -309,7 +309,7 @@ void zmq::select_t::loop ()
// Size is cached to avoid iteration through recently added descriptors.
for (fd_entries_t::size_type i = 0, size = family_entry.fd_entries.size (); i < size && rc > 0; ++i) {
fd_entry_t& fd_entry = family_entry.fd_entries [i];
fd_entry_t fd_entry = family_entry.fd_entries [i];
if (fd_entry.fd == retired_fd)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment