Stop the android heartbeat process.
()
| 157 | |
| 158 | |
| 159 | def stop_android_heartbeat(): |
| 160 | """Stop the android heartbeat process.""" |
| 161 | global _android_heartbeat_handle |
| 162 | if not _android_heartbeat_handle: |
| 163 | # If there is no heartbeat started yet, no work to do. Bail out. |
| 164 | return |
| 165 | |
| 166 | try: |
| 167 | _android_heartbeat_handle.kill() |
| 168 | except Exception as e: |
| 169 | logs.error('Unable to stop android heartbeat process: %s' % str(e)) |
| 170 | |
| 171 | _android_heartbeat_handle = None |
| 172 | |
| 173 | |
| 174 | def update_source_code_if_needed(): |