aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-06-07 22:23:14 +0200
committerMax <post@wickenrode.com>2015-06-07 22:23:14 +0200
commitb174c49b17b069267fe43b90f3a0874b6c52c23d (patch)
tree3b2e406c0d7c49d7a032526d986ee5c82af0c080 /Frameworks/SPMySQLFramework
parentccc2beb6ec41f722db284c02f36add184cfc9bdd (diff)
downloadsequelpro-b174c49b17b069267fe43b90f3a0874b6c52c23d.tar.gz
sequelpro-b174c49b17b069267fe43b90f3a0874b6c52c23d.tar.bz2
sequelpro-b174c49b17b069267fe43b90f3a0874b6c52c23d.zip
SPMySQL: Count having just connected as 'connection used'
Diffstat (limited to 'Frameworks/SPMySQLFramework')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
index 9fa5a9c8..7cbe384a 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
@@ -452,7 +452,7 @@ const char *SPMySQLSSLPermissibleCiphers = "DHE-RSA-AES256-SHA:AES256-SHA:DHE-RS
state = SPMySQLConnected;
initialConnectTime = mach_absolute_time();
mysqlConnectionThreadId = mySQLConnection->thread_id;
- lastConnectionUsedTime = 0;
+ lastConnectionUsedTime = initialConnectTime;
// Update SSL state
connectedWithSSL = NO;