diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/profiling/SendThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiling/SendThread.cpp b/src/profiling/SendThread.cpp index d595c9d4a5..0318a74901 100644 --- a/src/profiling/SendThread.cpp +++ b/src/profiling/SendThread.cpp @@ -156,7 +156,7 @@ void SendThread::Send(IProfilingConnection& profilingConnection) std::unique_lock<std::mutex> lock(m_WaitMutex); bool timeout = m_WaitCondition.wait_for(lock, - std::chrono::milliseconds(m_Timeout), + std::chrono::milliseconds(std::max(m_Timeout, 1000)), [&]{ return m_ReadyToRead; }); // If we get notified we need to flush the buffer again if(timeout) |