diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 19326a5118..442ece1f6d 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -546,6 +546,8 @@ class WatchmanReloader(BaseReloader): for sub in list(self.client.subs.keys()): self._check_subscription(sub) yield + # Protect against busy loops. + time.sleep(0.1) def stop(self): self.client.close()