Only check for keyword RECORD to be more general.
This commit is contained in:
parent
329c770aa0
commit
c2b52aa91d
@ -224,8 +224,8 @@ IsmasClient::sendRequestReceiveResponse(int port, QString const &request) {
|
|||||||
if (int idx = response.indexOf("{\"error\":\"ISMAS is offline\"}")) {
|
if (int idx = response.indexOf("{\"error\":\"ISMAS is offline\"}")) {
|
||||||
response = response.mid(0, idx);
|
response = response.mid(0, idx);
|
||||||
} else
|
} else
|
||||||
if (response == "RECORD SAVED") {
|
if (response.contains("RECORD")) { // RECORD SAVED or RECORD WRITE ABORTED
|
||||||
printInfoMessage(port, clientIP, clientPort, "IGNORED 'RECORD SAVED' RESPONSE");
|
printInfoMessage(port, clientIP, clientPort, QString("IGNORED '") + response + "' RESPONSE");
|
||||||
::close(sockfd);
|
::close(sockfd);
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user