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)
- how to update layer to 170? HOT 9
- Getting lots of error with: Error : 420 : FLOOD_WAIT_x HOT 3
- Criteria for user disconnect and reauthentication HOT 1
- I warn to use SendMessageAlbum send photo and Video and set caption,but can't success HOT 1
- Using remote image URL give WEBPAGE_CURL_FAILED HOT 1
- How to get a list of folders? HOT 4
- Threading issue with addProxy HOT 3
- Identifying returned UpdateHandler object for multiple clients. HOT 8
- Case wise when receiving the updateNewChat parameter HOT 1
- Working with invitations. HOT 11
- TdApi.Supergroup.isBroadcastGroup always returns false HOT 11
- Request to separate can_send_other_messages options in chatPermissions HOT 1
- Cross-compilation instructions HOT 3
- HOT 3
- How do I call toggleChatViewAsTopics using tdjson.dll? HOT 1
- how do I register an account? HOT 1
- Get messageThreadId for forum topic link HOT 2
- How to design a multithreaded application HOT 3
- Get strongly-named TdLib and TdLib.Api DLLs HOT 3
- Update Precompiled Android libs so Secret Chats work again HOT 8
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.