mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
fixed remanent bug due causing the deletion of rsEvent
This commit is contained in:
parent
3a58aa468f
commit
bbf92bd5f3
@ -760,9 +760,8 @@ bool p3ServiceControl::updateFilterByPeer_locked(const RsPeerId &peerId)
|
||||
recordFilterChanges_locked(peerId, originalFilter, peerFilter);
|
||||
|
||||
using Evt_t = RsPeerStateChangedEvent;
|
||||
std::shared_ptr<RsEvents> lockedRsEvents ( rsEvents );
|
||||
if(lockedRsEvents)
|
||||
lockedRsEvents->postEvent(std::unique_ptr<Evt_t>(new Evt_t(peerId)));
|
||||
if(rsEvents)
|
||||
rsEvents->postEvent(std::unique_ptr<Evt_t>(new Evt_t(peerId)));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user