Only check for keyword RECORD to be more general.

This commit is contained in:
Gerhard Hoffmann 2023-08-09 15:01:43 +02:00
parent 329c770aa0
commit c2b52aa91d

View File

@ -224,8 +224,8 @@ IsmasClient::sendRequestReceiveResponse(int port, QString const &request) {
if (int idx = response.indexOf("{\"error\":\"ISMAS is offline\"}")) {
response = response.mid(0, idx);
} else
if (response == "RECORD SAVED") {
printInfoMessage(port, clientIP, clientPort, "IGNORED 'RECORD SAVED' RESPONSE");
if (response.contains("RECORD")) { // RECORD SAVED or RECORD WRITE ABORTED
printInfoMessage(port, clientIP, clientPort, QString("IGNORED '") + response + "' RESPONSE");
::close(sockfd);
return std::nullopt;
}