mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:48:56 +02:00
Merge pull request #1018 from birarda/master
less aggresive assignment debugging
This commit is contained in:
commit
98a999334a
1 changed files with 3 additions and 2 deletions
|
@ -66,11 +66,12 @@ void childClient() {
|
||||||
// create a request assignment, accept assignments defined by the overidden type
|
// create a request assignment, accept assignments defined by the overidden type
|
||||||
Assignment requestAssignment(Assignment::RequestCommand, ::overiddenAssignmentType);
|
Assignment requestAssignment(Assignment::RequestCommand, ::overiddenAssignmentType);
|
||||||
|
|
||||||
|
// if we're here we have no assignment, so send a request
|
||||||
|
qDebug() << "Waiting for assignment -" << requestAssignment << "\n";
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (usecTimestampNow() - usecTimestamp(&lastRequest) >= ASSIGNMENT_REQUEST_INTERVAL_USECS) {
|
if (usecTimestampNow() - usecTimestamp(&lastRequest) >= ASSIGNMENT_REQUEST_INTERVAL_USECS) {
|
||||||
gettimeofday(&lastRequest, NULL);
|
gettimeofday(&lastRequest, NULL);
|
||||||
// if we're here we have no assignment, so send a request
|
|
||||||
qDebug() << "Sending an assignment request -" << requestAssignment << "\n";
|
|
||||||
nodeList->sendAssignment(requestAssignment);
|
nodeList->sendAssignment(requestAssignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue