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:
Shyotl
2011-09-03 06:05:23 -05:00
parent f36e1d23ea
commit 39b8abc4cf
3 changed files with 54 additions and 57 deletions

View File

@@ -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 **)
{