Skip to content

Commit b8fa239

Browse files
committed
CSHARP-1223: JsonWriter does not own the TextWriter passed to the constructor so it should not call Dispose on it.
1 parent 05d5932 commit b8fa239

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MongoDB.Bson/IO/JsonWriter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ protected override void Dispose(bool disposing)
655655
Close();
656656
}
657657
catch { } // ignore exceptions
658-
_textWriter.Dispose();
659658
}
660659
base.Dispose(disposing);
661660
}

0 commit comments

Comments
 (0)