MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / abort

Method abort

launcher/net/NetRequest.cpp:322–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322auto NetRequest::abort() -> bool
323{
324 m_state = State::AbortedByUser;
325 if (m_reply) {
326#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) // QNetworkReply::errorOccurred added in 5.15
327 disconnect(m_reply.get(), &QNetworkReply::errorOccurred, nullptr, nullptr);
328#else
329 disconnect(m_reply.get(), QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), nullptr, nullptr);
330#endif
331 m_reply->abort();
332 }
333 return true;
334}
335
336int NetRequest::replyStatusCode() const
337{

Callers 1

downloadFinishedMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected