ConnectionThread: Make sure we consume properly the threads
As suggested in Qt by Erik Kurzinger, although that never went in, AFAIK, at least not in this shape. https://codereview.qt-project.org/c/qt/qtwayland/+/373473
Edited by Aleix Pol Gonzalez