tools: remove write-only variable from tuhi-live

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-29 11:32:27 +10:00
parent b40dee5900
commit 9eedbe108a
1 changed files with 0 additions and 6 deletions

View File

@ -142,8 +142,6 @@ def run_live(request_fd_queue, conn_fd):
mainloop = GLib.MainLoop() mainloop = GLib.MainLoop()
connected_devices = 0
def on_disconnect(dev, pspec): def on_disconnect(dev, pspec):
mainloop.quit() mainloop.quit()
@ -154,10 +152,6 @@ def run_live(request_fd_queue, conn_fd):
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
finally: finally:
for device in manager.devices:
if device.live:
connected_devices += 1
for device in manager.devices: for device in manager.devices:
if device.live and device.connected: if device.live and device.connected:
logger.info(f'stopping live on {device}') logger.info(f'stopping live on {device}')