fix removing jobs for closed sockets from m_socketJobs (patch by Brian Vincent from synergy issue tracker #2866)

This commit is contained in:
Vasily Galkin 2014-11-12 18:18:36 +04:00
parent 435eae0c9a
commit 06df954366
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ SocketMultiplexer::serviceThread(void*)
for (SocketJobMap::iterator i = m_socketJobMap.begin(); for (SocketJobMap::iterator i = m_socketJobMap.begin();
i != m_socketJobMap.end();) { i != m_socketJobMap.end();) {
if (*(i->second) == NULL) { if (*(i->second) == NULL) {
m_socketJobs.erase(i->second);
m_socketJobMap.erase(i++); m_socketJobMap.erase(i++);
m_update = true; m_update = true;
} }