Simplified condition in update loop

Closes https://github.com/PistonDevelopers/piston/issues/526
Merge pull request #527 from bvssvni/master

Simplified condition in update loop