cleaning up tcp

This commit is contained in:
Erik Frojdh
2019-06-07 16:13:34 +02:00
parent 893805e6fd
commit 1fed3553b9
7 changed files with 160 additions and 187 deletions

View File

@ -1424,17 +1424,12 @@ void slsReceiverImplementation::closeFiles() {
int slsReceiverImplementation::restreamStop() {
FILE_LOG(logDEBUG3) << __SHORT_AT__ << " called";
bool ret = OK;
for (const auto &it : dataStreamer) {
if (it->RestreamStop() == FAIL)
ret = FAIL;
throw sls::RuntimeError("Could not restream stop packet");
}
// if fail, prints in datastreamer
if (ret == OK) {
FILE_LOG(logINFO) << "Restreaming Dummy Header via ZMQ successful";
}
return ret;
FILE_LOG(logINFO) << "Restreaming Dummy Header via ZMQ successful";
return OK;
}
/***callback functions***/