|
@@ -30,6 +30,7 @@
|
|
|
#include "ctkCmdLineModuleReference_p.h"
|
|
|
#include "ctkCmdLineModuleRunException.h"
|
|
|
#include "ctkCmdLineModuleXmlException.h"
|
|
|
+#include "ctkCmdLineModuleTimeoutException.h"
|
|
|
|
|
|
#include <ctkException.h>
|
|
|
|
|
@@ -174,6 +175,11 @@ ctkCmdLineModuleManager::registerModule(const QUrl &location)
|
|
|
{
|
|
|
xml = backend->rawXmlDescription(location);
|
|
|
}
|
|
|
+ catch (const ctkCmdLineModuleTimeoutException& e)
|
|
|
+ {
|
|
|
+ qDebug() << "Extracting XML from " << location.toString() << " timed out.";
|
|
|
+ throw;
|
|
|
+ }
|
|
|
catch (...)
|
|
|
{
|
|
|
// cache the failed attempt
|