diff options
| author | 2016-08-08 04:24:10 -0400 | |
|---|---|---|
| committer | 2016-08-08 04:24:10 -0400 | |
| commit | 68b8b84cb4ee9eee0009d1da1768fa40689ede5f (patch) | |
| tree | 7d5123f244c3eedb5febd1026a3d0ac8a85d2865 | |
| parent | TermWidget: Fix typo (diff) | |
| download | KVIrc-68b8b84cb4ee9eee0009d1da1768fa40689ede5f.tar.gz KVIrc-68b8b84cb4ee9eee0009d1da1768fa40689ede5f.tar.bz2 KVIrc-68b8b84cb4ee9eee0009d1da1768fa40689ede5f.zip | |
DccChatWindow: Fix possible issue in tryFlushOutBuffers()
| -rw-r--r-- | src/modules/dcc/DccChatWindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/dcc/DccChatWindow.cpp b/src/modules/dcc/DccChatWindow.cpp index a0ba818e1..1af5aa314 100644 --- a/src/modules/dcc/DccChatWindow.cpp +++ b/src/modules/dcc/DccChatWindow.cpp @@ -820,9 +820,11 @@ bool DccChatThread::tryFlushOutBuffers() { bool bRet = true; m_pMutex->lock(); - for(auto & b : m_pOutBuffers) + while(!m_pOutBuffers.empty()) { + auto & b = m_pOutBuffers.front(); int sentLen; + #ifdef COMPILE_SSL_SUPPORT if(m_pSSL) { |
