We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75944a commit 304d535Copy full SHA for 304d535
libs/esl/src/esl.c
@@ -1531,11 +1531,15 @@ ESL_DECLARE(esl_status_t) esl_send_recv_timed(esl_handle_t *handle, const char *
1531
const char *hval;
1532
esl_status_t status;
1533
1534
- if (!handle || !handle->connected || handle->sock == ESL_SOCK_INVALID) {
1535
- return ESL_FAIL;
1536
- }
+ if (!handle) {
+ return ESL_FAIL;
+ }
1537
1538
esl_mutex_lock(handle->mutex);
1539
+ if (!handle->connected || handle->sock == ESL_SOCK_INVALID) {
1540
+ esl_mutex_unlock(handle->mutex);
1541
1542
1543
1544
esl_event_safe_destroy(&handle->last_sr_event);
1545
0 commit comments