Commit 06c1a9f5 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Fix bug when RecvCPUAffinityList is empty

parent f9b8e4f1
......@@ -1574,9 +1574,9 @@ void GlobalCPUAffinityMgr::recvFinished()
CPUAffinity recv_all;
RecvCPUAffinityList::const_iterator it, end = m_curr.recv.end();
it = m_curr.recv.begin();
for (recv_all = (*it++).all(); it != end; ++it)
recv_all |= it->all();
if ((it = m_curr.recv.begin()) != end)
for (recv_all = (*it++).all(); it != end; ++it)
recv_all |= it->all();
if (m_curr.lima != recv_all) {
m_state = Changing;
......
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