Quote Originally Posted by wysota View Post
I don't see a relation to what the busy loop here... If a connection drops, you'll get an error trying to write to the socket, I don't see what waitForDisconnected() is needed for... And processing application events from within a worker thread (because I assume it is the thread that calls processEvents()) seems suspicious.

if i'am comment QCoreApplication:rocessEvents();
this->state() on that does not change