Avoid busy wait in get_slices thread by using the right check

This reduces the CPU usage of Allen in production by 1 core.

Merge request reports

Loading