mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
add debugging for assignment send and remove a useless cast
This commit is contained in:
parent
11cc79fd41
commit
8d7b4ab321
2 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ void childClient() {
|
||||||
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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -393,7 +393,7 @@ void NodeList::sendAssignment(Assignment& assignment) {
|
||||||
? (sockaddr*) &GLOBAL_ASSIGNMENT_SOCKET
|
? (sockaddr*) &GLOBAL_ASSIGNMENT_SOCKET
|
||||||
: _assignmentServerSocket;
|
: _assignmentServerSocket;
|
||||||
|
|
||||||
_nodeSocket.send((sockaddr*) assignmentServerSocket, assignmentPacket, numHeaderBytes + numAssignmentBytes);
|
_nodeSocket.send(assignmentServerSocket, assignmentPacket, numHeaderBytes + numAssignmentBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
Node* NodeList::addOrUpdateNode(sockaddr* publicSocket, sockaddr* localSocket, char nodeType, uint16_t nodeId) {
|
Node* NodeList::addOrUpdateNode(sockaddr* publicSocket, sockaddr* localSocket, char nodeType, uint16_t nodeId) {
|
||||||
|
|
Loading…
Reference in a new issue