Skip to content

Commit

Permalink
remove unecessary aws_raise_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jun 17, 2024
1 parent aad5078 commit 7e9f895
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/secure_tunneling.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,6 @@ static void s_on_websocket_setup(const struct aws_websocket_on_connection_setup_
AWS_FATAL_ASSERT(aws_event_loop_thread_is_callers_thread(secure_tunnel->loop));

if (secure_tunnel->desired_state != AWS_STS_CONNECTED) {
aws_raise_error(AWS_ERROR_IOTDEVICE_SECURE_TUNNELING_USER_REQUESTED_STOP);
s_on_websocket_shutdown(
secure_tunnel->websocket, AWS_ERROR_IOTDEVICE_SECURE_TUNNELING_USER_REQUESTED_STOP, secure_tunnel);
return;
Expand Down

0 comments on commit 7e9f895

Please sign in to comment.