mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
fix queue timeout for empty queue
This commit is contained in:
parent
577b6bf62f
commit
d66375bb09
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ void SendQueue::run() {
|
||||||
if (uint32_t(_lastACKSequenceNumber) == uint32_t(_currentSequenceNumber)) {
|
if (uint32_t(_lastACKSequenceNumber) == uint32_t(_currentSequenceNumber)) {
|
||||||
// we've sent the client as much data as we have (and they've ACKed it)
|
// we've sent the client as much data as we have (and they've ACKed it)
|
||||||
// either wait for new data to send or 5 seconds before cleaning up the queue
|
// either wait for new data to send or 5 seconds before cleaning up the queue
|
||||||
static const auto EMPTY_QUEUES_INACTIVE_TIMEOUT = std::chrono::seconds(5 * 1000 * 1000);
|
static const auto EMPTY_QUEUES_INACTIVE_TIMEOUT = std::chrono::seconds(5);
|
||||||
|
|
||||||
// use our condition_variable_any to wait
|
// use our condition_variable_any to wait
|
||||||
auto cvStatus = _emptyCondition.wait_for(doubleLock, EMPTY_QUEUES_INACTIVE_TIMEOUT);
|
auto cvStatus = _emptyCondition.wait_for(doubleLock, EMPTY_QUEUES_INACTIVE_TIMEOUT);
|
||||||
|
|
Loading…
Reference in a new issue