mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-10 14:53:00 +02:00
fix for restart hold behavior in domain-server
This commit is contained in:
parent
bac16cc5cf
commit
a771a5de07
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ void DomainServer::possiblyAddStaticAssignmentsBackToQueueAfterRestart(timeval*
|
|||
// throw into the assignment queue
|
||||
const uint64_t RESTART_HOLD_TIME_USECS = 5 * 1000 * 1000;
|
||||
|
||||
if (usecTimestampNow() - usecTimestamp(startTime) > RESTART_HOLD_TIME_USECS) {
|
||||
if (!_hasCompletedRestartHold && usecTimestampNow() - usecTimestamp(startTime) > RESTART_HOLD_TIME_USECS) {
|
||||
_hasCompletedRestartHold = true;
|
||||
|
||||
// pull anything in the static assignment file that isn't spoken for and add to the assignment queue
|
||||
|
@ -530,7 +530,7 @@ int DomainServer::run() {
|
|||
|
||||
qDebug("Received a request for assignment.\n");
|
||||
|
||||
if (_hasCompletedRestartHold) {
|
||||
if (!_hasCompletedRestartHold) {
|
||||
possiblyAddStaticAssignmentsBackToQueueAfterRestart(&startTime);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue