Skip to content

Commit

Permalink
Reset stream on created session (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Acuadros95 authored Dec 20, 2021
1 parent 8acdff4 commit e61bfa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/c/core/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ bool uxr_create_session_retries(

bool received = wait_session_status(session, create_session_buffer, ucdr_buffer_length(&ub), (size_t) retries);
bool created = received && UXR_STATUS_OK == session->info.last_requested_status;

if (created)
{
uxr_reset_stream_storage(&session->streams);
}

return created;
}

Expand Down

0 comments on commit e61bfa0

Please sign in to comment.