mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
Merge branch 'refactor' of github.com:slsdetectorgroup/slsDetectorPackage into refactor
This commit is contained in:
commit
938dd5e06c
@ -227,7 +227,9 @@ void Listener::ShutDownUDPSocket() {
|
|||||||
udpSocket->ShutDownSocket();
|
udpSocket->ShutDownSocket();
|
||||||
FILE_LOG(logINFO) << "Shut down of UDP port " << *udpPortNumber;
|
FILE_LOG(logINFO) << "Shut down of UDP port " << *udpPortNumber;
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
//delete socket at stoplistening
|
// wait only if the threads have started as it is the threads that
|
||||||
|
//give a post to semaphore(at stopListening)
|
||||||
|
if (runningFlag)
|
||||||
sem_wait(&semaphore_socket);
|
sem_wait(&semaphore_socket);
|
||||||
delete udpSocket;
|
delete udpSocket;
|
||||||
udpSocket = 0;
|
udpSocket = 0;
|
||||||
|
@ -1039,7 +1039,7 @@ int slsReceiverImplementation::startReceiver(char *c) {
|
|||||||
//processor->writer
|
//processor->writer
|
||||||
if (fileWriteEnable) {
|
if (fileWriteEnable) {
|
||||||
if (SetupWriter() == FAIL) {
|
if (SetupWriter() == FAIL) {
|
||||||
strcpy(c,"Could not create file.");
|
strcpy(c,"Could not create file.\n");
|
||||||
FILE_LOG(logERROR) << c;
|
FILE_LOG(logERROR) << c;
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user