Libcouchbase client crashes when stopping server

Ok looking at the patch to fix this issue

void ringbuffer_consumed(ringbuffer_t *buffer, lcb_size_t nb)
{
lcb_size_t n = ringbuffer_read(buffer, NULL, nb);

  • if (n != nb) {
  •    abort();
    
  • }
    }

It this considered the final solution for the issue, or more of a workaround ?.