mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 19:32:15 +02:00
less aggressive debugging of waiting for assignment
This commit is contained in:
parent
c99f1646db
commit
b3171679b2
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
|
||||
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) {
|
||||
if (usecTimestampNow() - usecTimestamp(&lastRequest) >= ASSIGNMENT_REQUEST_INTERVAL_USECS) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue