aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-02 23:46:51 +0200
committerMax <post@wickenrode.com>2015-07-02 23:46:51 +0200
commitc124db7ac403cdd92cc2c26e572f37f7b7d4ae75 (patch)
tree401d9839f330ad88e57dba86ae8f0c7230d5c6d8 /Source/SPConnectionController.m
parent3c49b0f2bc16777f83cf57825448b6689ed344e1 (diff)
downloadsequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.tar.gz
sequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.tar.bz2
sequelpro-c124db7ac403cdd92cc2c26e572f37f7b7d4ae75.zip
Add some info which might help a bit with debugging threading issues
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 5af38274..1f3521e9 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -310,7 +310,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
// Cancel the MySQL connection - handing it off to a background thread - if one is present
if (mySQLConnection) {
[mySQLConnection setDelegate:nil];
- [NSThread detachNewThreadWithName:@"SPConnectionController cancellation background disconnect" target:mySQLConnection selector:@selector(disconnect) object:nil];
+ [NSThread detachNewThreadWithName:SPCtxt(@"SPConnectionController cancellation background disconnect",dbDocument) target:mySQLConnection selector:@selector(disconnect) object:nil];
[mySQLConnection autorelease];
mySQLConnection = nil;
}
@@ -1871,7 +1871,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
if (mySQLConnection) {
[mySQLConnection setDelegate:nil];
- [NSThread detachNewThreadWithName:@"SPConnectionController close background disconnect" target:mySQLConnection selector:@selector(disconnect) object:nil];
+ [NSThread detachNewThreadWithName:SPCtxt(@"SPConnectionController close background disconnect", dbDocument) target:mySQLConnection selector:@selector(disconnect) object:nil];
[mySQLConnection autorelease];
mySQLConnection = nil;
}