From 2e8d9dae7fe62ef078f7f3f0f184f7e521b3209c 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 --- libbitdht/src/util/bdthreads.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libbitdht/src/util/bdthreads.cc b/libbitdht/src/util/bdthreads.cc index b7990f1d3..6e79c67f7 100644 --- a/libbitdht/src/util/bdthreads.cc +++ b/libbitdht/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()