input/Tidal*Request: add Start() method

The caller should be able to safely store the instance pointer before
his callback is invoked.
This commit is contained in:
Max Kellermann
2018-01-19 11:09:18 +01:00
parent 1ecad094bd
commit 2fed3b5e5b
6 changed files with 14 additions and 4 deletions

View File

@@ -61,8 +61,6 @@ TidalTrackRequest::TidalTrackRequest(CurlGlobal &curl,
request_headers.Append((std::string("X-Tidal-SessionId:")
+ session).c_str());
request.SetOption(CURLOPT_HTTPHEADER, request_headers.Get());
request.StartIndirect();
}
TidalTrackRequest::~TidalTrackRequest() noexcept