From b174c49b17b069267fe43b90f3a0874b6c52c23d Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 7 Jun 2015 22:23:14 +0200 Subject: SPMySQL: Count having just connected as 'connection used' --- Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks/SPMySQLFramework') 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; -- cgit v1.2.3