FW: Fixed thread loop

Main loop was causing issues and creating a lot of petitions, this is
fixed.