mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Copy instead of reference to a vector that gets reallocated.
This commit is contained in:
parent
6aa581980a
commit
4019112a82
@ -312,7 +312,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user