Fix crash on Windows

fixes #11730
This commit is contained in:
Gunnar Beutner 2016-07-12 15:33:05 +02:00
parent 172b57e895
commit 60c52f2109
1 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,9 @@ void SocketEventEnginePoll::ThreadProc(int tid)
typedef std::map<SOCKET, SocketEventDescriptor>::value_type kv_pair;
BOOST_FOREACH(const kv_pair& desc, m_Sockets[tid]) {
if (desc.second.Events == 0)
continue;
if (desc.second.EventInterface)
desc.second.EventInterface->m_EnginePrivate = &pfds[i];
@ -65,6 +68,8 @@ void SocketEventEnginePoll::ThreadProc(int tid)
i++;
}
pfds.resize(i);
m_FDChanged[tid] = false;
m_CV[tid].notify_all();
}