agsXMPP.IqGrabber.OnIq C# (CSharp) Method

OnIq() public method

An IQ Element is received. Now check if its one we are looking for and raise the event in this case.
public OnIq ( object sender, agsXMPP.protocol.client.IQ iq ) : void
sender object
iq agsXMPP.protocol.client.IQ
return void
		public void OnIq(object sender, IQ iq)
		{			
			if (iq == null)
				return;

			string id = iq.Id;
			if(id == null)
				return;

			TrackerData td;

			lock (m_grabbing)
			{
				td = (TrackerData) m_grabbing[id];

				if (td == null)
				{
					return;
				}
				m_grabbing.Remove(id);
			}
                       
            td.cb(this, iq, td.data);           
		}