Skip to content

Commit

Permalink
Fix the stream is not closed issue (#1432)
Browse files Browse the repository at this point in the history
In case of error we must close the stream.

Relates-To: OAM-2174

Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
  • Loading branch information
mykhailo-kuchma authored Sep 14, 2023
1 parent 3146857 commit 9fb70ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ client::CancellationToken VersionedLayerClientImpl::StreamLayerPartitions(
auto version_response =
GetVersion(boost::none, FetchOptions::OnlineIfNotFound, context);
if (!version_response.IsSuccessful()) {
async_stream->CloseStream(version_response.GetError());
return version_response.GetError();
}

Expand Down

0 comments on commit 9fb70ea

Please sign in to comment.