From ba550bb4689fcf757ccfa42aeb646bb6812b7b15 Mon Sep 17 00:00:00 2001 From: Milan Stute Date: Wed, 2 Dec 2020 16:12:25 +0100 Subject: [PATCH] Don't busy wait --- opendrop/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opendrop/cli.py b/opendrop/cli.py index 9434147..85c68e9 100644 --- a/opendrop/cli.py +++ b/opendrop/cli.py @@ -117,8 +117,7 @@ class AirDropCli: self.browser = AirDropBrowser(self.config) self.browser.start(callback_add=self._found_receiver) try: - while True: - pass + threading.Event().wait() except KeyboardInterrupt: pass finally: