lib/ably/realtime/connection/websocket_transport.rb in ably-0.7.0 vs lib/ably/realtime/connection/websocket_transport.rb in ably-0.7.1
- old
+ new
@@ -126,12 +126,12 @@
@timer.cancel
@timer = nil
end
end
- def create_timer(period, &block)
+ def create_timer(period)
@timer = EventMachine::Timer.new(period) do
- block.call
+ yield
end
end
def setup_driver
@driver = WebSocket::Driver.client(self)