1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-31 20:16:57 +00:00

fix: close all timers before destroying the event loop (#3679)

This commit is contained in:
Charles Kerr 2022-08-19 19:28:24 -05:00 committed by GitHub
parent aac1ab784d
commit 7dd55b64e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,9 +476,6 @@ public:
struct event* udp_event = nullptr;
struct event* udp6_event = nullptr;
struct struct_utp_context* utp_context = nullptr;
std::unique_ptr<libtransmission::Timer> utp_timer;
/* The open port on the local machine for incoming peer requests */
tr_port private_peer_port;
@ -891,6 +888,10 @@ private:
std::string announce_ip_;
bool announce_ip_enabled_ = false;
public:
struct struct_utp_context* utp_context = nullptr;
std::unique_ptr<libtransmission::Timer> utp_timer;
};
constexpr bool tr_isPriority(tr_priority_t p)