diff --git a/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp b/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp index 56368217b..9d7d60ad6 100644 --- a/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp +++ b/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp @@ -622,12 +622,6 @@ int slsReceiverTCPIPInterface::send_update() { mySock->SendDataOnly(mySock->lastClientIP,sizeof(mySock->lastClientIP)); - //index -#ifdef SLS_RECEIVER_UDP_FUNCTIONS - ind=receiverBase->getFileIndex(); -#endif - mySock->SendDataOnly(&ind,sizeof(ind)); - //filepath #ifdef SLS_RECEIVER_UDP_FUNCTIONS path = receiverBase->getFilePath(); @@ -650,6 +644,12 @@ int slsReceiverTCPIPInterface::send_update() { delete[] path; } + //index +#ifdef SLS_RECEIVER_UDP_FUNCTIONS + ind=receiverBase->getFileIndex(); +#endif + mySock->SendDataOnly(&ind,sizeof(ind)); + // file path // file name