Allows restarting app

This commit is contained in:
deckensteuerung 2018-08-22 18:21:59 +02:00
parent 69a231bd69
commit a11294d4f2

View File

@ -67,9 +67,10 @@ class AppRunner(threading.Thread):
with self.lock: with self.lock:
if self.app == None or self.app.poll() != None: if self.app == None or self.app.poll() != None:
self.requestedApp = 0 self.requestedApp = 0
if self.currentApp != self.requestedApp: if self.requestedApp != None:
self.currentApp = self.requestedApp self.currentApp = self.requestedApp
self.updateApp() self.updateApp()
self.requestedApp = None
d = self.app.stdout d = self.app.stdout
oshandle = d.fileno() oshandle = d.fileno()
data = os.read(oshandle, config.ScreenX*config.ScreenY*3) data = os.read(oshandle, config.ScreenX*config.ScreenY*3)