From d9038e650a8cbacc3463c6989b5af1e8429a1e8b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 6 May 2017 01:25:54 +0100 Subject: MySQLConnector is not a MS product --- OpenSim/Data/MySQL/MySQLEstateData.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'OpenSim/Data/MySQL/MySQLEstateData.cs') diff --git a/OpenSim/Data/MySQL/MySQLEstateData.cs b/OpenSim/Data/MySQL/MySQLEstateData.cs index a5c8d24..12593f6 100644 --- a/OpenSim/Data/MySQL/MySQLEstateData.cs +++ b/OpenSim/Data/MySQL/MySQLEstateData.cs @@ -171,12 +171,13 @@ namespace OpenSim.Data.MySQL } } } - if (!found && create) { DoCreate(es); LinkRegion(regionID, (int)es.EstateID); } + cmd.Connection = null; + dbcon.Close(); } LoadBanList(es); @@ -231,6 +232,7 @@ namespace OpenSim.Data.MySQL es.Save(); } + dbcon.Close(); } } @@ -263,6 +265,7 @@ namespace OpenSim.Data.MySQL cmd.ExecuteNonQuery(); } + dbcon.Close(); } SaveBanList(es); @@ -300,6 +303,7 @@ namespace OpenSim.Data.MySQL } } } + dbcon.Close(); } } @@ -329,6 +333,7 @@ namespace OpenSim.Data.MySQL cmd.Parameters.Clear(); } } + dbcon.Close(); } } @@ -358,6 +363,7 @@ namespace OpenSim.Data.MySQL cmd.Parameters.Clear(); } } + dbcon.Close(); } } @@ -383,6 +389,7 @@ namespace OpenSim.Data.MySQL } } } + dbcon.Close(); } return uuids.ToArray(); @@ -437,7 +444,6 @@ namespace OpenSim.Data.MySQL reader.Close(); } } - dbcon.Close(); } @@ -466,7 +472,6 @@ namespace OpenSim.Data.MySQL reader.Close(); } } - dbcon.Close(); } -- cgit v1.1