Displaying 1 result from an estimated 1 matches for "add_query_callback".
2009 Dec 24
0
can't return array object from worker
...on status - #{@client.is_connected?}"
return @client.is_connected?
end
def connected?
return @client.is_connected?
end
def get_buddies
if self.connected?
@buddy_list = []
roster = Jabber::Roster::Helper.new(@client)
mainthread = Thread.current
roster.add_query_callback { |iq|
mainthread.wakeup
}
Thread.stop
roster.groups.each { |group|
roster.find_by_group(group).each { |item|
@buddy_list << item#[{:name => item.iname, :jid => item.jid,
:subscription => item.subscription}]
}
}
logger....