mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix autobug racecondition that could occur with non gps devices
This commit is contained in:
parent
74449be999
commit
6d463334a5
1 changed files with 2 additions and 1 deletions
|
|
@ -875,7 +875,8 @@ class MeshService : Service(), Logging {
|
|||
updateNotification()
|
||||
|
||||
// we don't ask for GPS locations from android if our device has a built in GPS
|
||||
if (!myNodeInfo!!.hasGPS) {
|
||||
// Note: myNodeInfo can go away if we lose connections, so it might be null
|
||||
if (myNodeInfo?.hasGPS != true) {
|
||||
// If we have at least one other person in the mesh, send our GPS position otherwise stop listening to GPS
|
||||
|
||||
serviceScope.handledLaunch(Dispatchers.Main) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue