Skip to content

Commit 80a3763

Browse files
committed
Fix logic for DeferConnectionReset.
This was originally called ConnectionResetOnOpen but the logic wasn't updated when the variable was renamed.
1 parent 5d00840 commit 80a3763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/ConnectionPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public async ValueTask<ServerSession> GetSessionAsync(MySqlConnection connection
6666
}
6767
else
6868
{
69-
if ((ConnectionSettings.ConnectionReset && !ConnectionSettings.DeferConnectionReset) || session.DatabaseOverride is not null)
69+
if ((ConnectionSettings.ConnectionReset && ConnectionSettings.DeferConnectionReset) || session.DatabaseOverride is not null)
7070
{
7171
reuseSession = await session.TryResetConnectionAsync(ConnectionSettings, ioBehavior, cancellationToken).ConfigureAwait(false);
7272
}

0 commit comments

Comments
 (0)