mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 09:18:45 -04:00
changed RsEvents so that it takes event types when registering handlers, which limits the number of handlers called for each event
This commit is contained in:
parent
dc2f2f5eb4
commit
c544b1da7c
19 changed files with 186 additions and 140 deletions
|
@ -112,6 +112,7 @@ p3discovery2::p3discovery2(
|
|||
|
||||
if(rsEvents)
|
||||
rsEvents->registerEventsHandler(
|
||||
RsEventType::GOSSIP_DISCOVERY,
|
||||
[this](std::shared_ptr<const RsEvent> event)
|
||||
{
|
||||
rsEventsHandler(*event);
|
||||
|
@ -1348,8 +1349,3 @@ void p3discovery2::rsEventsHandler(const RsEvent& event)
|
|||
//
|
||||
// /* ignore other operations */
|
||||
// }
|
||||
|
||||
// (cyril) do we still need this??
|
||||
RsGossipDiscoveryFriendInviteReceivedEvent::RsGossipDiscoveryFriendInviteReceivedEvent(const std::string& invite) :
|
||||
RsEvent(RsEventType::GOSSIP_DISCOVERY_INVITE_RECEIVED),
|
||||
mInvite(invite) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue