aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLManager.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-08 05:35:01 +0000
committerAdam Frisby2008-05-08 05:35:01 +0000
commit4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533 (patch)
tree810a9afdba93b636a3589d1b8dc82d7ba932f28f /OpenSim/Data/MySQL/MySQLManager.cs
parent* Reduced major-ass ugly code in LoadBalancer/TcpClient.cs (diff)
downloadopensim-SC-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.zip
opensim-SC-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.gz
opensim-SC-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.bz2
opensim-SC-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.xz
* You can haz more spring cleaning.
* Eventually this codebase will be clean. >_>
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLManager.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLManager.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs
index c62cfa7..1f95aad 100644
--- a/OpenSim/Data/MySQL/MySQLManager.cs
+++ b/OpenSim/Data/MySQL/MySQLManager.cs
@@ -253,13 +253,7 @@ namespace OpenSim.Data.MySQL
253 lock (dbcon) 253 lock (dbcon)
254 { 254 {
255 // Close the DB connection 255 // Close the DB connection
256 try 256 dbcon.Close();
257 {
258 dbcon.Close();
259 }
260 catch
261 {
262 }
263 257
264 // Try to reopen it 258 // Try to reopen it
265 try 259 try
@@ -269,7 +263,7 @@ namespace OpenSim.Data.MySQL
269 } 263 }
270 catch (Exception e) 264 catch (Exception e)
271 { 265 {
272 m_log.Error("Unable to reconnect to database " + e.ToString()); 266 m_log.Error("Unable to reconnect to database " + e);
273 } 267 }
274 268
275 // Run the query again 269 // Run the query again