diff options
author | Adam Frisby | 2008-05-08 05:35:01 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-08 05:35:01 +0000 |
commit | 4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533 (patch) | |
tree | 810a9afdba93b636a3589d1b8dc82d7ba932f28f /OpenSim/Data/MySQL/MySQLManager.cs | |
parent | * Reduced major-ass ugly code in LoadBalancer/TcpClient.cs (diff) | |
download | opensim-SC_OLD-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.zip opensim-SC_OLD-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.gz opensim-SC_OLD-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.bz2 opensim-SC_OLD-4fa0cbdfbb9b8c1b60c8f23edb6301962afd8533.tar.xz |
* You can haz more spring cleaning.
* Eventually this codebase will be clean. >_>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLManager.cs | 10 |
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 |