Only increment the ring index if data was successfully queued