MCPcopy Create free account
hub / github.com/MITK/MITK / HandleSessionError

Method HandleSessionError

Modules/PythonSegmentation/src/mitknnInteractiveTool.cpp:1432–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430}
1431
1432bool 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
1445void mitk::nnInteractiveTool::AbortSession()
1446{

Callers 2

UndoLastInteractionMethod · 0.95
DoUpdatePreviewMethod · 0.95

Calls 2

SendMethod · 0.45

Tested by

no test coverage detected