MCPcopy Create free account
hub / github.com/MultiMC/Launcher / kill

Method kill

launcher/Application.cpp:1295–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293}
1294
1295bool Application::kill(InstancePtr instance)
1296{
1297 if (!instance->isRunning())
1298 {
1299 qWarning() << "Attempted to kill instance" << instance->id() << ", which isn't running.";
1300 return false;
1301 }
1302 auto & extras = m_instanceExtras[instance->id()];
1303 // NOTE: copy of the shared pointer keeps it alive
1304 auto controller = extras.controller;
1305 if(controller)
1306 {
1307 return controller->abort();
1308 }
1309 return true;
1310}
1311
1312void Application::addRunningInstance()
1313{

Callers 7

abortMethod · 0.45
abortMethod · 0.45
timeoutMethod · 0.45
abortMethod · 0.45
abortMethod · 0.45

Calls 3

isRunningMethod · 0.45
idMethod · 0.45
abortMethod · 0.45

Tested by

no test coverage detected