mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:48:15 +02:00
Merge pull request #7817 from AndrewMeadows/ignore-echo-of-stale-data
fix bug preventing sim ownership release
This commit is contained in:
commit
ec50744aa1
1 changed files with 2 additions and 2 deletions
|
@ -113,11 +113,11 @@ void SimulationOwner::updateExpiry() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SimulationOwner::pendingRelease(const quint64& timestamp) {
|
bool SimulationOwner::pendingRelease(const quint64& timestamp) {
|
||||||
return _pendingPriority == 0 && _pendingState == PENDING_STATE_RELEASE && _pendingTimestamp > timestamp;
|
return _pendingPriority == 0 && _pendingState == PENDING_STATE_RELEASE && _pendingTimestamp >= timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SimulationOwner::pendingTake(const quint64& timestamp) {
|
bool SimulationOwner::pendingTake(const quint64& timestamp) {
|
||||||
return _pendingPriority > 0 && _pendingState == PENDING_STATE_TAKE && _pendingTimestamp > timestamp;
|
return _pendingPriority > 0 && _pendingState == PENDING_STATE_TAKE && _pendingTimestamp >= timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimulationOwner::clearCurrentOwner() {
|
void SimulationOwner::clearCurrentOwner() {
|
||||||
|
|
Loading…
Reference in a new issue