pierr3 / VectorAudio

An Audio-For-VATSIM ATC Client for macOS, Linux and Windows
GNU General Public License v3.0
47 stars 11 forks source link

Short term API error disconnects too fast #65

Closed ogruetzmann closed 1 year ago

ogruetzmann commented 1 year ago

Had a few disconnects recently that seem to be the result of a short term interruption of the Vatsim API (or the connection). The disconnect seems to happen on the first occasion and I was always able to reconnect immediately.

Would it be possible to disconnect after 3 or maybe 5 attempts to try to avoid this?

[2023-08-21 20:47:35.103] [VectorAudio] [error] Could not download URL: /users/info/?cid=961224 [2023-08-21 20:47:35.103] [VectorAudio] [info] Detected client disconnecting from network [2023-08-21 20:47:35.118] [VectorAudio] [info] [afv_native] afv::ATCClient Voice Session Disconnected [2023-08-21 20:47:35.126] [VectorAudio] [info] [afv_native] afv_native::ATCClient Disconnected from AFV API Server. Terminating sessions

ogruetzmann commented 1 year ago

vector_audio.log

pierr3 commented 1 year ago

Thank you, this is confirmed by the recent outage reports from the VATSIM side. This should be fairly straightforward to implement.