# File jabber4r/protocol.rb, line 171 def poll sleep 10 while true sleep 2 @pollCounter = @pollCounter - 1 if @pollCounter < 0 begin send(" \t ") rescue Thread.new {@exception_block.call if @exception_block} break end end end end