Skip to content

Commit f7f552e

Browse files
committed
fix ReqeustContinue to be sync safe
1 parent 661b972 commit f7f552e

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
@@ -3669,8 +3669,10 @@ internal int GetSnapshotPacketID()
36693669
/// </summary>
36703670
internal void RequestContinue(bool value)
36713671
{
3672-
Debug.Assert(_snapshot != null);
3673-
_snapshot.RequestContinue(value);
3672+
if (_snapshot != null)
3673+
{
3674+
_snapshot.RequestContinue(value);
3675+
}
36743676
}
36753677

36763678
/// <summary>

0 commit comments

Comments
 (0)