When `AccClient.start()` is executed before the game is running, a `ConnectionResetError` is thrown and this break is executed: https://github.com/EmperorCookie/accapi/blob/f93040b4b8ae30f569efadfe4e29ce9761155a9d/src/accapi/client.py#L399-L406 This causes a full shutdown of client and reader. It might be preferrable to keep retrying, similar to how the timeout is handled. Otherwise the user of the API has to keep retrying executing `start()` without even being notified about an error, or has to implement some mechanism to detect if the game is already running.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by ptoews and has received 5 comments.