# File lib/jabber4r/roster.rb, line 131 131: def get_vcard 132: ct = Thread.current 133: queryID = @roster.session.id 134: result = nil 135: @roster.session.connection.send(Jabber::Protocol::Iq.gen_vcard(self, queryID, jid)) { |je| 136: if je.element_tag == "iq" and je.attr_type=="result" and je.attr_id == queryID 137: je.consume_element 138: result = Jabber::VCard.from_element(je.VCARD) 139: ct.wakeup 140: else 141: end 142: } 143: Thread.stop 144: return result 145: end