From 8663ad1ac953f684d709c5b0642c6c0d46a53e3a Mon Sep 17 00:00:00 2001 From: Chrys Date: Thu, 5 Sep 2019 23:02:30 +0200 Subject: [PATCH] unify loops --- src/fenrirscreenreader/remoteDriver/tcpDriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/remoteDriver/tcpDriver.py b/src/fenrirscreenreader/remoteDriver/tcpDriver.py index 59fe9772..3bde7ad4 100644 --- a/src/fenrirscreenreader/remoteDriver/tcpDriver.py +++ b/src/fenrirscreenreader/remoteDriver/tcpDriver.py @@ -24,7 +24,7 @@ class driver(remoteDriver): self.port = self.env['runtime']['settingsManager'].getSettingAsInt('remote', 'port') self.fenrirSock.bind((self.host, self.port)) self.fenrirSock.listen(1) - while active.value == 1: + while active.value: try: r, _, _ = select.select([self.fenrirSock], [], [], 0.8) except select.error: