aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-04 04:16:10 +0200
committerMax <post@wickenrode.com>2015-10-04 04:16:10 +0200
commit5239e6df5961a475e9497d30a33f48bfd99e8e5b (patch)
treea496508ac9deba9f029070d9bcebaa6485c76054
parenta0641ac04022f8f6d35daa2f93d470b99494af12 (diff)
downloadsequelpro-5239e6df5961a475e9497d30a33f48bfd99e8e5b.tar.gz
sequelpro-5239e6df5961a475e9497d30a33f48bfd99e8e5b.tar.bz2
sequelpro-5239e6df5961a475e9497d30a33f48bfd99e8e5b.zip
Add logging for a possible issue in Connection keepalive
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m
index e8338bb4..e43b4a2f 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m
@@ -80,6 +80,10 @@
*/
- (void)_threadedKeepAlive
{
+ if(keepAliveThread) {
+ NSLog(@"warning: overwriting existing keepAliveThread: %@, results may be unpredictable!",keepAliveThread);
+ }
+
keepAliveThread = [NSThread currentThread];
[keepAliveThread setName:@"SPMySQL connection keepalive monitor thread"];