Skip to content

Commit 9a1d28c

Browse files
committed
Throws an exception while establishing the data channel
1 parent 264e168 commit 9a1d28c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MagicOnion.Client/StreamingHubClientBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,12 @@ internal async Task __ConnectAndSubscribeAsync(CancellationToken connectAndSubsc
283283
{
284284
await dataChannel.ConnectAsync(subscriptionCts.Token).ConfigureAwait(false);
285285
}
286-
catch (Exception ex)
286+
catch (Exception)
287287
{
288288
// TODO(DataChannel): Error logging / retry?
289289
dataChannel.Dispose();
290290
dataChannel = null;
291+
throw;
291292
}
292293
}
293294

0 commit comments

Comments
 (0)