From 9a63db260cf78d4b50626ff88ea6208a34c6684c Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 6 Oct 2010 21:44:38 +0000 Subject: [PATCH] tentative of blind bug fixing git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3624 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- src/util/bdthreads.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/bdthreads.cc b/src/util/bdthreads.cc index b7990f1..6e79c67 100644 --- a/src/util/bdthreads.cc +++ b/src/util/bdthreads.cc @@ -75,7 +75,8 @@ bdThread::bdThread() void bdThread::join() /* waits for the the mTid thread to stop */ { - pthread_join(mTid, NULL); + if(mTid > 0) + pthread_join(mTid, NULL); } void bdThread::stop()