Skip to content

Commit 737ccf9

Browse files
committed
fix ReqeustContinue to be sync safe
1 parent 8b6e985 commit 737ccf9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3699,8 +3699,10 @@ internal int GetSnapshotPacketID()
36993699
/// </summary>
37003700
internal void RequestContinue(bool value)
37013701
{
3702-
Debug.Assert(_snapshot != null);
3703-
_snapshot.RequestContinue(value);
3702+
if (_snapshot != null)
3703+
{
3704+
_snapshot.RequestContinue(value);
3705+
}
37043706
}
37053707

37063708
/// <summary>

0 commit comments

Comments
 (0)