# File jabber4r/roster.rb, line 131 def get_vcard ct = Thread.current queryID = @roster.session.id result = nil @roster.session.connection.send(Jabber::Protocol::Iq.gen_vcard(self, queryID, jid)) { |je| if je.element_tag == "iq" and je.attr_type=="result" and je.attr_id == queryID je.consume_element result = Jabber::VCard.from_element(je.VCARD) ct.wakeup else end } Thread.stop return result end