Merge pull request #4228 from galkinvv/fix2866

High client CPU usage and laggy mouse
This commit is contained in:
Adam Potolsky 2015-06-11 16:12:40 -07:00
commit 6bb44fbc59

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;
} }