We weren't actually sleeping for the right amount of time

Tiny bugfix - we were always sleeping for 2 seconds regardless of what time was configured.