Comments (5)
I am reading. Td.cpp:4038:close_flag_ = 4;
void Td::close_impl(bool destroy_flag) {
destroy_flag_ |= destroy_flag;
if (close_flag_) {
return;
}
if (state_ == State::Decrypt) {
if (destroy_flag) {
TdDb::destroy(parameters_);
}
state_ = State::Close;
close_flag_ = 4;
return dec_actor_refcnt();
}
state_ = State::Close;
close_flag_ = 1;
G()->set_close_flag();
send_closure(auth_manager_actor_, &AuthManager::on_closing);
LOG(WARNING) << "Close " << tag("destroy", destroy_flag);
// wait till all request_actors will stop.
request_actors_.clear();
G()->td_db()->flush_all();
send_closure_later(actor_id(this), &Td::dec_request_actor_refcnt); // remove guard
}
from td.
What databases are enabled in setTdlibParameters?
When td_json_client_destroy is called? Before or after logging? What is authorization state when it is called?
from td.
For a couple of seconds I sketched another script.
https://github.com/isopen/tdlib/blob/master/fiddle_index.rb
falls on the method
test0:
{"@type"=>"textEntities", "entities"=>[{"@type"=>"textEntity", "offset"=>0, "length"=>9, "type"=>{"@type"=>"textEntityTypeMention"}}, {"@type"=>"textEntity", "offset"=>10, "length"=>13, "type"=>{"@type"=>"textEntityTypeBotCommand"}}, {"@type"=>"textEntity", "offset"=>24, "length"=>20, "type"=>{"@type"=>"textEntityTypeUrl"}}, {"@type"=>"textEntity", "offset"=>45, "length"=>11, "type"=>{"@type"=>"textEntityTypeUrl"}}], "@extra"=>["5", 7.0]}
{"@type"=>"updateAuthorizationState", "authorization_state"=>{"@type"=>"authorizationStateWaitTdlibParameters"}}
{"@type"=>"authorizationStateWaitTdlibParameters", "@extra"=>1.01234}
waiting for authorization (this is normal)
td_json_client_destroy
test1(crash):
td_json_client_create
I delete the loop.
td_json_client_destroy
from td.
Thanks. The crash will be fixed in next update.
from td.
Fixed in TDLib 1.2.0.
from td.
Related Issues (20)
- I can't send a video to a secret chat. HOT 4
- java, how to convert object to json and have a special field "_" which is the class name HOT 1
- سلام
- سلام
- APPID CHANNELS_TOO_MUCH error
- How to send a story as the current user? HOT 14
- Lots of code: 400, Too Many Requests: retry after 15 HOT 5
- "Last server dialog date didn't increased from" HOT 2
- "Limit reached" error when trying to join a channel or group, even though joined only ~20. HOT 5
- Telegram login HOT 2
- [ 1][t 0][1722393961.183200836][tl_jni_object.cpp:39] Can't find field [reaction] with signature [Ljava/lang/String;] HOT 16
- مساعدة HOT 6
- Error to run tdlib in springboot project in windows 10 HOT 17
- Tdlib version 1.8.34 error `400 Chat not found` HOT 2
- How should I remove the Tdlib version information at the end of the login information? HOT 5
- when i build example cpp ,i got this : TdConfig.cmake, version: 1.8.34 (32bit) HOT 2
- Current build scripts does not generate dSYMs which may cause warnings under Xcode 16 HOT 10
- Signaler
- Can't build android tdlib HOT 6
- How to Set a Timeout for TdApi.DownloadFile in Java with tdlib? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td.