From 06df954366dced2ded3c846cc69588c0f6fe2566 Mon Sep 17 00:00:00 2001 From: Vasily Galkin Date: Wed, 12 Nov 2014 18:18:36 +0400 Subject: [PATCH] fix removing jobs for closed sockets from m_socketJobs (patch by Brian Vincent from synergy issue tracker #2866) --- src/lib/net/SocketMultiplexer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/net/SocketMultiplexer.cpp b/src/lib/net/SocketMultiplexer.cpp index 53ac5bbe..5b5d23bb 100644 --- a/src/lib/net/SocketMultiplexer.cpp +++ b/src/lib/net/SocketMultiplexer.cpp @@ -243,6 +243,7 @@ SocketMultiplexer::serviceThread(void*) for (SocketJobMap::iterator i = m_socketJobMap.begin(); i != m_socketJobMap.end();) { if (*(i->second) == NULL) { + m_socketJobs.erase(i->second); m_socketJobMap.erase(i++); m_update = true; }