Fix sleep function waiting for udev properties