Skip to content

Commit

Permalink
Moved sleep to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWikander committed Nov 6, 2020
1 parent ae50330 commit 4efcb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/objectcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,7 @@ int handleObjectPropertiesData(const ObjectPropertiesType * properties,
for (unsigned int i = 0; i < relevantMap->numberOfTargets; ++i) {
for (unsigned int j = 0; j < numberOfObjects; j++) {
if (transmitterIDs[j] == relevantMap->targetIDs[i]) {
usleep(700000);
LogMessage(LOG_LEVEL_INFO, "Configuring object %u to receive injection data from object %u",
relevantMap->targetIDs[i], relevantMap->sourceID);
UtilSendTCPData(MODULE_NAME, transmissionBuffer, messageSize,
Expand Down Expand Up @@ -2293,7 +2294,6 @@ int sendDataInjectionMessages(const ObjectDataType * objectData,
for (unsigned int i = 0; i < relevantMap->numberOfTargets; ++i) {
for (unsigned int j = 0; j < numberOfObjects; j++) {
if (transmitterIDs[j] == relevantMap->targetIDs[i]) {
usleep(700000);
UtilSendUDPData(MODULE_NAME, &objectConnections[j].monitorSocket,
&objectConnections[j].objectMonitorAddress,
transmissionBuffer, messageSize, 0);
Expand Down

0 comments on commit 4efcb3d

Please sign in to comment.