mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
* Use std::unique_ptr to manage UDP core object N.B.: it's no longer valid to call socket adjustments quirks from tr_sessionSetUTPEnabled() because the corresponding object may be not created yet. We have to create (or re-create) it explicitly (like it's done in tr_sessionSetDHTEnabled()) or just set is_utp_enabled_ flag of the session and assume that socket adjustments will be done later when the object is constructed.