Closed BECATRUE closed 1 year ago
So far, when the thread is finished, we only quit it. However, the application is stopped so quickly, there is no enough time for bus thread to finish quit. And it cause the error: Destroyed while thread is still running.
Destroyed while thread is still running
Thus, I just called wait() after quit().
wait()
quit()
So far, when the thread is finished, we only quit it. However, the application is stopped so quickly, there is no enough time for bus thread to finish quit. And it cause the error:
Destroyed while thread is still running
.Thus, I just called
wait()
afterquit()
.