Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed .close() method for TonLibClient #16

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Conversation

yungwine
Copy link
Contributor

No description provided.

there was an error in previous version.
 when you tried to close client there could be an error related to asynchronous sending requests: you call .close() method, it awaits for other 2 methods which can select to .send() method which crashed because of 'if not self._is_working: raise RuntimeError(f"TonLib failed with state: {self._state}")', so I fixed this adding _is_closing() method.
@psylopunk psylopunk merged commit 371e862 into psylopunk:main Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants