receiver bug fix: function pointer not initialized as null in dataprocessor

This commit is contained in:
2019-04-18 09:27:02 +02:00
parent 6b4d6084f5
commit 708975acb5
5 changed files with 17 additions and 5 deletions

View File

@ -708,6 +708,16 @@ int slsReceiverImplementation::setNumberofUDPInterfaces(const int n) {
// update row and column in dataprocessor
setDetectorPositionId(detID);
// update call backs
if(rawDataReadyCallBack) {
for (const auto& it : dataProcessor)
it->registerCallBackRawDataReady(rawDataReadyCallBack,pRawDataReady);
}
if(rawDataModifyReadyCallBack) {
for (const auto& it : dataProcessor)
it->registerCallBackRawDataModifyReady(rawDataModifyReadyCallBack,pRawDataReady);
}
// test socket buffer size with current set up
if (setUDPSocketBufferSize(0) == FAIL) {
return FAIL;