From 700d114cf47a764bbaec376455b1befc3ed6926c Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 29 Jun 2017 18:27:00 +0200 Subject: [PATCH] fixed bug causing failure of group autosubscribe in GxsTrans --- libretroshare/src/gxstrans/p3gxstrans.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/gxstrans/p3gxstrans.cc b/libretroshare/src/gxstrans/p3gxstrans.cc index 7106fc9d1..80c7dd4df 100644 --- a/libretroshare/src/gxstrans/p3gxstrans.cc +++ b/libretroshare/src/gxstrans/p3gxstrans.cc @@ -191,8 +191,8 @@ void p3GxsTrans::handleResponse(uint32_t token, uint32_t req_type) { RS_STACK_MUTEX(mDataMutex); - bool shouldSubscribe = !subscribed && ((!old)|| meta.mGroupId == mPreferredGroupId ); - bool shouldUnSubscribe = subscribed && old && meta.mGroupId != mPreferredGroupId; + shouldSubscribe = !subscribed && ((!old)|| meta.mGroupId == mPreferredGroupId ); + shouldUnSubscribe = subscribed && old && meta.mGroupId != mPreferredGroupId; } #ifdef DEBUG_GXSTRANS