-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Closing connection for database td.binlog #771
Comments
This is a sanity check that fires when app tries to destroy a client, which is still used in other thread by The usual way to do that is to call the method |
I'm doing it now as you recommended but still get the same error. First I call the method close, then I wait for authorizationStateClosed and when its occured I call _td_json_client_destroy
|
The error means that |
Thanks, that was the problem |
Is there a way to close the database td.binlog on purpose?
When I call _self.td_json_client_destroy(self.td_json_client) (I'm using python-telegram), then I get this error:
[ 0][t 0][1572861952.897261381][Client.cpp:272] Check
!is_locked
failedFor the background:
In some cases I need to restart my API which uses tdlib. But since I can't close the database I cant free up the memory. So I think I have to close the connection to the database first. But I think the tdlib does create the connection, so there should be a way to tell the lib ti close the connection.
The text was updated successfully, but these errors were encountered: