mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 13:54:27 -04:00
fixed remanent bug due causing the deletion of rsEvent
This commit is contained in:
parent
3a58aa468f
commit
bbf92bd5f3
1 changed files with 2 additions and 3 deletions
|
@ -760,9 +760,8 @@ bool p3ServiceControl::updateFilterByPeer_locked(const RsPeerId &peerId)
|
||||||
recordFilterChanges_locked(peerId, originalFilter, peerFilter);
|
recordFilterChanges_locked(peerId, originalFilter, peerFilter);
|
||||||
|
|
||||||
using Evt_t = RsPeerStateChangedEvent;
|
using Evt_t = RsPeerStateChangedEvent;
|
||||||
std::shared_ptr<RsEvents> lockedRsEvents ( rsEvents );
|
if(rsEvents)
|
||||||
if(lockedRsEvents)
|
rsEvents->postEvent(std::unique_ptr<Evt_t>(new Evt_t(peerId)));
|
||||||
lockedRsEvents->postEvent(std::unique_ptr<Evt_t>(new Evt_t(peerId)));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue