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:
parent
c4b290586e
commit
a7261526ac
1 changed files with 2 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue