aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-05-12 14:59:40 +0000
committerrowanbeentje <rowan@beent.je>2012-05-12 14:59:40 +0000
commita0dd563f044459fa497794bbcd5041fa8e47f613 (patch)
treec1c13f3e50e4dc3f2afa5542fc83204ceac11bb8 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
parentfd06b32111ab5dca228913c3ee8bb2cd3dbd2403 (diff)
downloadsequelpro-a0dd563f044459fa497794bbcd5041fa8e47f613.tar.gz
sequelpro-a0dd563f044459fa497794bbcd5041fa8e47f613.tar.bz2
sequelpro-a0dd563f044459fa497794bbcd5041fa8e47f613.zip
- Fix incorrect reconnection detection in the new SPMySQL reconnection code paths, improving general connection robustness in recent builds
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
index 64c19ae3..26276bda 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
@@ -720,6 +720,7 @@ const char *SPMySQLSSLPermissibleCiphers = "DHE-RSA-AES256-SHA:AES256-SHA:DHE-RS
// If the reconnection succeeded, restore the connection state as appropriate
if (state == SPMySQLConnected) {
+ reconnectSucceeded = YES;
if (databaseToRestore) {
[self selectDatabase:databaseToRestore];
[databaseToRestore release], databaseToRestore = nil;