0.1.3 fix autobug related to meshService unexpectedly being !null

This commit is contained in:
geeksville 2020-03-08 14:47:00 -07:00
parent 692f5994a0
commit db3c9266e8
3 changed files with 5 additions and 4 deletions

View file

@ -411,7 +411,8 @@ class MainActivity : AppCompatActivity(), Logging,
private fun bindMeshService() {
debug("Binding to mesh service!")
// we bind using the well known name, to make sure 3rd party apps could also
logAssert(UIState.meshService == null)
if (UIState.meshService != null)
Exceptions.reportError("meshService was supposed to be null, ignoring (but reporting a bug)")
MeshService.startService(this)?.let { intent ->
// ALSO bind so we can use the api