Skip to content

Commit 92292a3

Browse files
committed
Fix DNET749 (StackOverflow on CommandBehavior.CloseConnection)
1 parent 0fd5006 commit 92292a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbDataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ protected override void Dispose(bool disposing)
159159
{
160160
if (!IsClosed)
161161
{
162+
_isClosed = true;
162163
if (_command != null && !_command.IsDisposed)
163164
{
164165
if (_command.CommandType == CommandType.StoredProcedure)
@@ -175,7 +176,6 @@ protected override void Dispose(bool disposing)
175176
{
176177
_connection.Close();
177178
}
178-
_isClosed = true;
179179
_position = StartPosition;
180180
_command = null;
181181
_connection = null;

0 commit comments

Comments
 (0)