When entering mainLoop after doConnect(), if no data comes from network, the mainLoop makes only 9 iterations and then stops. So, it doesn't react on break_flag and there is no way to stop main loop in this situation.
Log in to post a comment.