Tiny bit of lleventnotifier cleanup. Only functional difference is that server is notified when an event notification response is handled... also the notifier is deleted (leakfix? I can't find where it was deleted on this case before this new change)..
This commit is contained in:
@@ -114,25 +114,10 @@ void LLPanelEvent::setEventID(const U32 event_id)
|
||||
|
||||
if (event_id != 0)
|
||||
{
|
||||
sendEventInfoRequest();
|
||||
gEventNotifier.add(event_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void LLPanelEvent::sendEventInfoRequest()
|
||||
{
|
||||
LLMessageSystem *msg = gMessageSystem;
|
||||
|
||||
msg->newMessageFast(_PREHASH_EventInfoRequest);
|
||||
msg->nextBlockFast(_PREHASH_AgentData);
|
||||
msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID() );
|
||||
msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID() );
|
||||
msg->nextBlockFast(_PREHASH_EventData);
|
||||
msg->addU32Fast(_PREHASH_EventID, mEventID);
|
||||
gAgent.sendReliableMessage();
|
||||
}
|
||||
|
||||
|
||||
//static
|
||||
void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user