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

Method canAbort

launcher/net/NetJob.cpp:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86auto NetJob::canAbort() const -> bool
87{
88 bool canFullyAbort = true;
89
90 // can abort the downloads on the queue?
91 for (auto part : m_queue)
92 canFullyAbort &= part->canAbort();
93
94 // can abort the active downloads?
95 for (auto part : m_doing)
96 canFullyAbort &= part->canAbort();
97
98 return canFullyAbort;
99}
100
101auto NetJob::abort() -> bool
102{

Callers 1

abortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected