mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
CAPI: Check if lastStarport->id matches Journal MarketID
Ref: <https://github.com/EDCD/EDMarketConnector/issues/1572>
This commit is contained in:
parent
347e7c6058
commit
e38d5e1b46
@ -1100,6 +1100,11 @@ class AppWindow(object):
|
|||||||
|
|
||||||
self.capi_query_holdoff_time = capi_response.query_time + companion.capi_query_cooldown
|
self.capi_query_holdoff_time = capi_response.query_time + companion.capi_query_cooldown
|
||||||
|
|
||||||
|
elif capi_response.capi_data['lastStarport']['id'] != monitor.station_marketid:
|
||||||
|
logger.warning(f"MarketID mis-match: {capi_response.capi_data['lastStarport']['id']!r} !="
|
||||||
|
f" {monitor.station_marketid!r}")
|
||||||
|
raise companion.ServerLagging()
|
||||||
|
|
||||||
elif not monitor.state['OnFoot'] and capi_response.capi_data['ship']['id'] != monitor.state['ShipID']:
|
elif not monitor.state['OnFoot'] and capi_response.capi_data['ship']['id'] != monitor.state['ShipID']:
|
||||||
# CAPI ship must match
|
# CAPI ship must match
|
||||||
logger.warning(f"not {monitor.state['OnFoot']!r} and "
|
logger.warning(f"not {monitor.state['OnFoot']!r} and "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user