comparison src/cagou/core/cagou_main.py @ 77:bc170ccca744

core: added forgotten platfom check in on_stop
author Goffi <goffi@goffi.org>
date Thu, 22 Dec 2016 18:24:24 +0100
parents b84dadbab62b
children 46d962910801
comparison
equal deleted inserted replaced
76:a766c278b640 77:bc170ccca744
248 248
249 def on_resume(self): 249 def on_resume(self):
250 self.cagou_status[0] = 'R' 250 self.cagou_status[0] = 'R'
251 251
252 def on_stop(self): 252 def on_stop(self):
253 self.cagou_status[0] = 'S' 253 if sys.platform == "android":
254 self.cagou_status.flush() 254 self.cagou_status[0] = 'S'
255 self.cagou_status_fd.close() 255 self.cagou_status.flush()
256 self.cagou_status_fd.close()
256 257
257 258
258 class Cagou(QuickApp): 259 class Cagou(QuickApp):
259 MB_HANDLE = False 260 MB_HANDLE = False
260 261