Displaying 1 result from an estimated 1 matches for "find_by_group".
2009 Dec 24
0
can't return array object from worker
...d?
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.info "Buddies\n#{@buddy_list.inspect}"
return @buddy_list
end
end
When i call the connect_chat worke...