diff options
author | Max <post@wickenrode.com> | 2015-10-04 04:16:10 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-04 04:20:52 +0200 |
commit | 85853c0f4c6737fc7537e02b0ee1d8da123f0a3d (patch) | |
tree | a20cd4fcdfd0d63f652d0801d7f4a337e6850151 /Frameworks/SPMySQLFramework/Source | |
parent | fb6e001dfbec290a528702e3943eba369ca49cd9 (diff) | |
download | sequelpro-85853c0f4c6737fc7537e02b0ee1d8da123f0a3d.tar.gz sequelpro-85853c0f4c6737fc7537e02b0ee1d8da123f0a3d.tar.bz2 sequelpro-85853c0f4c6737fc7537e02b0ee1d8da123f0a3d.zip |
Add logging for a possible issue in Connection keepalive
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source')
-rw-r--r-- | Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Ping & KeepAlive.m | 4 |
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 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"]; |