unify loops
This commit is contained in:
parent
05165d2868
commit
8663ad1ac9
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user