Skip to content

Commit 93062be

Browse files
committed
fix ReqeustContinue to be sync safe
1 parent 3f7ab8f commit 93062be

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
@@ -3680,8 +3680,10 @@ internal int GetSnapshotPacketID()
36803680
/// </summary>
36813681
internal void RequestContinue(bool value)
36823682
{
3683-
Debug.Assert(_snapshot != null);
3684-
_snapshot.RequestContinue(value);
3683+
if (_snapshot != null)
3684+
{
3685+
_snapshot.RequestContinue(value);
3686+
}
36853687
}
36863688

36873689
/// <summary>

0 commit comments

Comments
 (0)