aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionHandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPConnectionHandler.m')
-rw-r--r--Source/SPConnectionHandler.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m
index 6efdf366..0634df68 100644
--- a/Source/SPConnectionHandler.m
+++ b/Source/SPConnectionHandler.m
@@ -37,6 +37,7 @@
#import "SPKeychain.h"
#import "RegexKitLite.h"
#import "SPCategoryAdditions.h"
+#import "SPThreadAdditions.h"
#import <SPMySQL/SPMySQL.h>
@@ -75,8 +76,8 @@ static NSString *SPLocalhostAddress = @"127.0.0.1";
[connectButton setEnabled:YES];
[connectButton display];
#endif
-
- [NSThread detachNewThreadSelector:@selector(initiateMySQLConnectionInBackground) toTarget:self withObject:nil];
+
+ [NSThread detachNewThreadWithName:@"SPConnectionHandler MySQL connection task" target:self selector:@selector(initiateMySQLConnectionInBackground) object:nil];
}
/**