fix removing jobs for closed sockets from m_socketJobs (patch by Brian Vincent from synergy issue tracker #2866)
This commit is contained in:
parent
435eae0c9a
commit
06df954366
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue