From 85853c0f4c6737fc7537e02b0ee1d8da123f0a3d 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 7443a67e..354b2aee 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 thread"]; -- cgit v1.2.3