@@ -584,22 +584,20 @@ static struct aws_h2_sm_connection *s_sm_connection_new(
584584
585585static void s_sm_connection_release_connection (struct aws_h2_sm_connection * sm_connection ) {
586586 AWS_ASSERT (sm_connection -> num_streams_assigned == 0 );
587- AWS_FATAL_ASSERT (sm_connection -> connection != NULL );
588- if (sm_connection -> connection ) {
589- /* Should only be invoked from the connection thread. */
590- AWS_ASSERT (aws_channel_thread_is_callers_thread (aws_http_connection_get_channel (sm_connection -> connection )));
587+ AWS_ASSERT (sm_connection -> connection != NULL );
588+ /* Should only be invoked from the connection thread. */
589+ AWS_ASSERT (aws_channel_thread_is_callers_thread (aws_http_connection_get_channel (sm_connection -> connection )));
591590
592- s_lock_synced_data (sm_connection -> stream_manager );
593- /* Remove this connection from the connection tracking list */
594- aws_linked_list_remove (& sm_connection -> node );
595- s_unlock_synced_data (sm_connection -> stream_manager );
596- int error = aws_http_connection_manager_release_connection (
597- sm_connection -> stream_manager -> connection_manager , sm_connection -> connection );
598- AWS_ASSERT (!error );
599- (void )error ;
600- sm_connection -> connection = NULL ;
601- aws_ref_count_release (& sm_connection -> ref_count );
602- }
591+ s_lock_synced_data (sm_connection -> stream_manager );
592+ /* Remove this connection from the connection tracking list */
593+ aws_linked_list_remove (& sm_connection -> node );
594+ s_unlock_synced_data (sm_connection -> stream_manager );
595+ int error = aws_http_connection_manager_release_connection (
596+ sm_connection -> stream_manager -> connection_manager , sm_connection -> connection );
597+ AWS_ASSERT (!error );
598+ (void )error ;
599+ sm_connection -> connection = NULL ;
600+ aws_ref_count_release (& sm_connection -> ref_count );
603601}
604602
605603static void s_sm_on_connection_acquired_failed_synced (
0 commit comments