comparison sat/plugins/plugin_misc_android.py @ 2882:0c54970d8e6e

plugin android: fixed csi_timer reset in setActive + crash on call of isActive before session initialisation
author Goffi <goffi@goffi.org>
date Fri, 05 Apr 2019 21:22:03 +0200
parents 6b00f88316bf
children 9aadf11b315b
comparison
equal deleted inserted replaced
2881:13e0a260e7b8 2882:0c54970d8e6e
243 def setActive(self): 243 def setActive(self):
244 if self._csi is None: 244 if self._csi is None:
245 return 245 return
246 if self._csi_timer is not None: 246 if self._csi_timer is not None:
247 self._csi_timer.cancel() 247 self._csi_timer.cancel()
248 self._csi_timer = None
248 for client in self.host.getClients(C.PROF_KEY_ALL): 249 for client in self.host.getClients(C.PROF_KEY_ALL):
249 self._csi.setActive(client) 250 self._csi.setActive(client)