Update worker.py

stupid mistake, doubled while loop