| 1430 | } |
| 1431 | |
| 1432 | bool mitk::nnInteractiveTool::HandleSessionError(const std::string& errorMessage) |
| 1433 | { |
| 1434 | if (!this->IsRemoteConnectionError(errorMessage)) |
| 1435 | return false; |
| 1436 | |
| 1437 | // Do not tear down here: this runs while an interactor is mid-event, where |
| 1438 | // disabling/resetting interactors is unsafe. Signal the GUI, which calls |
| 1439 | // AbortSession() on the next event-loop tick. |
| 1440 | this->SessionExpiredEvent.Send(); |
| 1441 | |
| 1442 | return true; |
| 1443 | } |
| 1444 | |
| 1445 | void mitk::nnInteractiveTool::AbortSession() |
| 1446 | { |
no test coverage detected