Allows restarting app
This commit is contained in:
parent
69a231bd69
commit
a11294d4f2
3
main.py
3
main.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user