lib/xmpp4r/robot.rb in xmpp4r-robot-0.2.1 vs lib/xmpp4r/robot.rb in xmpp4r-robot-0.2.2
- old
+ new
@@ -69,10 +69,10 @@
##### getters #####
def roster sync=false
sync_roster if sync || @roster[:unknown].nil?
- @roster
+ @roster_mutex.synchronize{ @roster }
end
##### actions #####
def available