eddn: navbeaconscan: Location cross-check paranoia

This commit is contained in:
Athanasius committed 2022-05-29 15:05:11 +01:00
1 parent 3702b465e5
commit e38ea28ba6
1 file changed
+6
+6
View File
@@ -896,6 +896,12 @@ class EDDN:
#######################################################################
# Augmentations
#######################################################################
# In this case should add StarSystem and StarPos, but only if the
# SystemAddress of where we think we are matches.
if this.systemaddress is None or this.systemaddress != entry['SystemAddress']:
logger.warning("SystemAddress isn't current location! Can't add augmentations!")
return 'Wrong System! Missed jump ?'
ret = this.eddn.entry_augment_system_data(entry, system_name, system_starpos)
if isinstance(ret, str):
return ret