Fixed a bug in the updater loop, which in case of a time-out would block.