Skip to content

Commit 0596855

Browse files
committed
Handle stream activation after shutdown
1 parent 2458056 commit 0596855

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

source/request-response/request_response_client.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,11 @@ static void s_mqtt_rr_client_submit_operation(struct aws_task *task, void *arg,
16421642
goto done;
16431643
}
16441644

1645+
if (client->state == AWS_RRCS_SHUTTING_DOWN) {
1646+
s_request_response_fail_operation(operation, AWS_ERROR_MQTT_REQUEST_RESPONSE_CLIENT_SHUT_DOWN);
1647+
goto done;
1648+
}
1649+
16451650
AWS_LOGF_DEBUG(
16461651
AWS_LS_MQTT_REQUEST_RESPONSE,
16471652
"id=%p: request-response client, queuing operation %" PRIu64,

0 commit comments

Comments
 (0)