From 4efcb3d2f96152a24fd9ad04e29252e11f0becb2 Mon Sep 17 00:00:00 2001 From: Lukas Wikander Date: Fri, 6 Nov 2020 11:58:09 +0100 Subject: [PATCH] Moved sleep to correct location --- core/src/objectcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/objectcontrol.c b/core/src/objectcontrol.c index 523e38297..47760097d 100644 --- a/core/src/objectcontrol.c +++ b/core/src/objectcontrol.c @@ -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, @@ -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);