don't try to cleanup on main thread exit

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29478 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-04 18:04:13 +00:00
parent 1c11dee837
commit 1a353d2514

View file

@ -327,14 +327,7 @@ static pthread_key_t thread_object_key;
*/ */
static void exitedThread(void *thread) static void exitedThread(void *thread)
{ {
if (thread == defaultThread) if (thread != defaultThread)
{
NSThread *t = defaultThread;
defaultThread = nil;
[t dealloc];
}
else
{ {
fprintf(stderr, "WARNING thread %p terminated without calling +exit!\n", fprintf(stderr, "WARNING thread %p terminated without calling +exit!\n",
thread); thread);