void FindGroupChatsItemDiscoInfo(IQEventArgs e, AutoResetEvent reset, List<Jid> mucList, Jid jid) { if (e.IQ.Error == null) { var discoInfo = (DiscoInfo)e.IQ.Query; if (discoInfo.HasFeature(agsXMPP.Uri.MUC)) { // no locking required, these callbacks are sequential mucList.Add(jid); } } e.Handled = true; reset.Set(); }