From bbf92bd5f333beebae902780f89403c6eb0f2f66 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 10 Sep 2019 21:59:25 +0200 Subject: [PATCH] fixed remanent bug due causing the deletion of rsEvent --- libretroshare/src/pqi/p3servicecontrol.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/p3servicecontrol.cc b/libretroshare/src/pqi/p3servicecontrol.cc index 3cfe56c5c..9bf3b3c62 100644 --- a/libretroshare/src/pqi/p3servicecontrol.cc +++ b/libretroshare/src/pqi/p3servicecontrol.cc @@ -760,9 +760,8 @@ bool p3ServiceControl::updateFilterByPeer_locked(const RsPeerId &peerId) recordFilterChanges_locked(peerId, originalFilter, peerFilter); using Evt_t = RsPeerStateChangedEvent; - std::shared_ptr lockedRsEvents ( rsEvents ); - if(lockedRsEvents) - lockedRsEvents->postEvent(std::unique_ptr(new Evt_t(peerId))); + if(rsEvents) + rsEvents->postEvent(std::unique_ptr(new Evt_t(peerId))); return true; }