Skip to content

Commit

Permalink
Add 50 millisecond wait to reduce CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Jan 10, 2017
1 parent 7be70c8 commit f411be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/multisite/intersite.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ def run(self):
self.handle_endpoint_event()
except ConnectionError:
logging.error('Could not handle endpoint event due to ConnectionError')
else:
time.sleep(0.05)


class SiteLoginCredentials(object):
Expand Down

0 comments on commit f411be4

Please sign in to comment.