free_tls_connection(bsock->tls);
bsock->tls = NULL;
}
- if (bsock->is_timed_out()) {
+ if (bsock->is_timed_out() || bsock->is_terminated()) {
shutdown(bsock->m_fd, SHUT_RDWR); /* discard any pending I/O */
}
socketClose(bsock->m_fd); /* normal close */
/* Acquire the human readable string */
ERR_error_string_n(sslerr, buf, sizeof(buf));
Dmsg3(100, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf);
- Jmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
+ Qmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
}
}