# File lib/jabber4r/protocol.rb, line 174 174: def poll 175: sleep 10 176: while true 177: sleep 2 178: @pollCounter = @pollCounter - 1 179: if @pollCounter < 0 180: begin 181: send(" \t ") 182: rescue 183: Thread.new {@exception_block.call if @exception_block} 184: break 185: end 186: end 187: end 188: end