That doesn't freeze the script because there's a loop frequency which will keep it from checking the condition every 0.0001ms (if it's written properly).
@HeyImJamie are in a fight about if you should let log bots out when they break for 2-3 minutes and log back in afterwards. I think it's stupid because they would do that 3-4 times an hour, log out for 2 min and log back in.