diff options
Diffstat (limited to '')
-rw-r--r-- | source/cServer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/cServer.cpp b/source/cServer.cpp index ab4698f3f..3b85a45c4 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -714,9 +714,11 @@ void cServer::cNotifyWriteThread::Execute(void) void cServer::cNotifyWriteThread::NotifyClientWrite(const cClientHandle * a_Client)
{
- cCSLock Lock(m_CS);
- m_Clients.remove(const_cast<cClientHandle *>(a_Client)); // Put it there only once
- m_Clients.push_back(const_cast<cClientHandle *>(a_Client));
+ {
+ cCSLock Lock(m_CS);
+ m_Clients.remove(const_cast<cClientHandle *>(a_Client)); // Put it there only once
+ m_Clients.push_back(const_cast<cClientHandle *>(a_Client));
+ }
m_Event.Set();
}
|