Only log error when not sigpipe

pull/3793/head
Isaac Connor 2023-12-07 09:15:41 -05:00
parent 6dc0e88988
commit 599d21050d
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ bool StreamBase::sendTextFrame(const char *frame_text) {
}
int rc = fwrite(buffer, n_bytes, 1, stdout);
if (rc != 1) {
Error("Unable to send stream text frame: %d %s", rc, strerror(errno));
if (!zm_terminate)
Error("Unable to send stream text frame: %d %s", rc, strerror(errno));
return false;
}
fputs("\r\n\r\n", stdout);