fixed registration of event handler

This commit is contained in:
csoler 2021-02-26 23:20:48 +01:00
parent 339948a15c
commit b16c30bc3f
3 changed files with 5 additions and 3 deletions

View file

@ -128,8 +128,7 @@ bool p3Peers::FriendsChanged(const RsPeerId& pid,bool add)
#endif
if(rsEvents)
{
auto ev = std::make_shared<RsPeerStateChangedEvent>();
ev->mSslId = pid;
auto ev = std::make_shared<RsPeerStateChangedEvent>(pid);
rsEvents->postEvent(ev);
}
RsServer::notify()->notifyListChange(NOTIFY_LIST_FRIENDS, add? NOTIFY_TYPE_ADD : NOTIFY_TYPE_DEL); // this is meant to disappear