From 5239e6df5961a475e9497d30a33f48bfd99e8e5b Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Oct 2015 04:16:10 +0200 Subject: Add logging for a possible issue in Connection keepalive --- .../Source/SPMySQLConnection Categories/Ping & KeepAlive.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Frameworks/SPMySQLFramework/Source') 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"]; -- cgit v1.2.3