diff 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
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_android.py	Thu Mar 28 08:40:38 2019 +0100
+++ b/sat/plugins/plugin_misc_android.py	Fri Apr 05 21:22:03 2019 +0200
@@ -245,5 +245,6 @@
             return
         if self._csi_timer is not None:
             self._csi_timer.cancel()
+            self._csi_timer = None
         for client in self.host.getClients(C.PROF_KEY_ALL):
             self._csi.setActive(client)