diff --git a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c index 0efe2fb67..a199ffd68 100644 --- a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c @@ -2400,9 +2400,8 @@ int stopStateMachine() { while (isTransmitting) { // wait for beb to send out all packets if (Beb_IsTransmitting(&isTransmitting, send_to_ten_gig, 1) == FAIL) { - strcpy(mess, "Could not read delay counters\n"); - *ret = (int)FAIL; - return; + LOG(logERROR, ("failed to stop acquisition\n")); + return FAIL; } if (isTransmitting) { printf("Transmitting...\n");