Skip to content

Commit a23ed08

Browse files
author
Hubert Plociniczak
committed
Merge default into bug19130
2 parents d7be24d + 34e37e2 commit a23ed08

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/client/impl/ConnectionBase.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,17 @@ public IList ShutdownReport
334334

335335
void IDisposable.Dispose()
336336
{
337-
Close();
337+
Abort();
338+
if (ShutdownReport.Count > 0)
339+
{
340+
foreach (ShutdownReportEntry entry in ShutdownReport)
341+
{
342+
if (entry.Exception != null)
343+
throw entry.Exception;
344+
}
345+
346+
throw new OperationInterruptedException(null);
347+
}
338348
}
339349

340350
///<summary>API-side invocation of connection close.</summary>

0 commit comments

Comments
 (0)