From 04366bc279f74ece0396e4d6a1ff0599122fd35c Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 13 Jul 2010 14:03:05 +0000 Subject: [PATCH] fixed unlock of connMtx in p3ConnectMgr::netExtCheck unlock was too early git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3288 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3connmgr.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index d6f103e37..a287a1063 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -1014,8 +1014,6 @@ void p3ConnectMgr::netExtCheck() IndicateConfigChanged(); /**** INDICATE MSG CONFIG CHANGED! *****/ } - connMtx.unlock(); /* UNLOCK MUTEX */ - if (mNetFlags.mExtAddrOk) { #if defined(CONN_DEBUG_TICK) || defined(CONN_DEBUG_RESET) @@ -1038,6 +1036,7 @@ void p3ConnectMgr::netExtCheck() #if defined(CONN_DEBUG_TICK) || defined(CONN_DEBUG_RESET) std::cerr << "p3ConnectMgr::netExtCheck() Ext Unstable - Unreachable Check" << std::endl; #endif + connMtx.unlock(); /* UNLOCK MUTEX */ netUnreachableCheck(); } }