1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 21:26:53 +00:00

fix: shut down utp sooner during session shutdown (#4287)

This commit is contained in:
Charles Kerr 2022-11-30 16:35:10 -06:00 committed by GitHub
parent c4b290586e
commit a7261526ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1213,6 +1213,8 @@ void tr_session::closeImplPart1(std::promise<void>* closed_promise, std::chrono:
is_closing_ = true;
// close the low-hanging fruit that can be closed immediately w/o consequences
utp_timer.reset();
tr_utpClose(this);
verifier_.reset();
save_timer_.reset();
now_timer_.reset();
@ -1277,7 +1279,6 @@ void tr_session::closeImplPart2(std::promise<void>* closed_promise, std::chrono:
stats().saveIfDirty();
peer_mgr_.reset();
tr_utpClose(this);
openFiles().closeAll();
// tada we are done!