mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
refactor: tr_web (#2640)
* fixup! refactor: tr_web (#2633) fix: race condition in web threadfunc during bootstrap fixes #2639
This commit is contained in:
@@ -124,7 +124,7 @@ static char* tr_strlratio(char* buf, double ratio, size_t buflen)
|
||||
|
||||
static bool waitingOnWeb;
|
||||
|
||||
static void onTorrentFileDownloaded(tr_web::FetchResponse&& response)
|
||||
static void onTorrentFileDownloaded(tr_web::FetchResponse const& response)
|
||||
{
|
||||
auto* ctor = static_cast<tr_ctor*>(response.user_data);
|
||||
tr_ctorSetMetainfo(ctor, std::data(response.body), std::size(response.body), nullptr);
|
||||
|
||||
Reference in New Issue
Block a user