| 1293 | } |
| 1294 | |
| 1295 | bool 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 | |
| 1312 | void Application::addRunningInstance() |
| 1313 | { |
no test coverage detected