unify loops

This commit is contained in:
Chrys 2019-09-05 23:02:30 +02:00
parent 05165d2868
commit 8663ad1ac9

View File

@ -24,7 +24,7 @@ class driver(remoteDriver):
self.port = self.env['runtime']['settingsManager'].getSettingAsInt('remote', 'port') self.port = self.env['runtime']['settingsManager'].getSettingAsInt('remote', 'port')
self.fenrirSock.bind((self.host, self.port)) self.fenrirSock.bind((self.host, self.port))
self.fenrirSock.listen(1) self.fenrirSock.listen(1)
while active.value == 1: while active.value:
try: try:
r, _, _ = select.select([self.fenrirSock], [], [], 0.8) r, _, _ = select.select([self.fenrirSock], [], [], 0.8)
except select.error: except select.error: