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; }