Skip to content

Commit 78f2484

Browse files
CSHARP-2950: Check BinaryConnection WrapExceptions for exceptions wrapped when targetting netstandard2.0 (mongodb#507)
1 parent 376c555 commit 78f2484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver.Core/Core/Connections/BinaryConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ private void ThrowIfDisposed()
741741
private Exception WrapException(Exception ex, string action)
742742
{
743743
if (
744-
#if NET452
744+
#if !NETSTANDARD1_5
745745
ex is ThreadAbortException ||
746746
ex is StackOverflowException ||
747747
#endif

0 commit comments

Comments
 (0)