mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix: tear down utp _after_ peer-mgr (#4383)
This commit is contained in:
parent
616e79c0a8
commit
3899255f1c
2 changed files with 2 additions and 2 deletions
|
@ -1248,7 +1248,6 @@ void tr_session::closeImplPart1(std::promise<void>* closed_promise, std::chrono:
|
|||
tr_torrentFreeInSessionThread(tor);
|
||||
}
|
||||
torrents.clear();
|
||||
tr_utpClose(this);
|
||||
// ...now that all the torrents have been closed, any remaining
|
||||
// `&event=stopped` announce messages are queued in the announcer.
|
||||
// Tell the announcer to start shutdown, which sends out the stop
|
||||
|
@ -1284,6 +1283,7 @@ 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!
|
||||
|
|
|
@ -1141,7 +1141,7 @@ public:
|
|||
std::unique_ptr<Cache> cache = std::make_unique<Cache>(torrents_, 1024 * 1024 * 2);
|
||||
|
||||
private:
|
||||
// depends-on: timer_maker_, top_bandwidth_, torrents_, web_
|
||||
// depends-on: timer_maker_, top_bandwidth_, utp_comntext, torrents_, web_
|
||||
std::unique_ptr<struct tr_peerMgr, void (*)(struct tr_peerMgr*)> peer_mgr_;
|
||||
|
||||
// depends-on: peer_mgr_, advertised_peer_port_, torrents_
|
||||
|
|
Loading…
Reference in a new issue