-
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
iOS app crashes on td_json_client_destroy #594
Comments
This is a sanity check that |
Thanks! I solved my problem with your help :) |
@levlam Just a question. Telegram clients created in different threads are completely independent from one another right? i.e. one thread closing/destroying it's client doesn't affect other clients in different thread that were created independently. |
also if a file is currently being downloaded and the client is destroyed does it also result in that Check !is_locked error? |
@chairus All TDLib clients are independent and doesn't affect each other, except competing for system resources. Client's thread doesn't matter.
|
I'm using modified example of this code https://github.com/tdlib/td/blob/master/example/swift/src/main.swift, previously in tdlib 1.3 when user drops app in background i destroyed client with td_json_client_destroy(client), but in 1.4 i'm started to get messages: �[1;31m[ 0][t 0][1560468306.749094009][Client.cpp:269] Check
!is_locked
failedHow can i properly close connection on app background and then create it again in 1.4?
The text was updated successfully, but these errors were encountered: