Skip to content

Commit 387c75d

Browse files
committed
Update DriverConnectionProvider.cs
1 parent 49e652d commit 387c75d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NHibernate/Connection/DriverConnectionProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public override IDbConnection GetConnection()
3838
try
3939
{
4040
conn.ConnectionString = ConnectionString;
41+
conn.Close();
4142
conn.Open();
4243
}
4344
catch (Exception)
@@ -49,4 +50,4 @@ public override IDbConnection GetConnection()
4950
return conn;
5051
}
5152
}
52-
}
53+
}

0 commit comments

Comments
 (0)