Compare commits
8 Commits
a415643923
...
a3cfb7ade1
Author | SHA1 | Date | |
---|---|---|---|
a3cfb7ade1 | |||
44b9986166 | |||
4fe745e858 | |||
a0b95479e2 | |||
07630c3b36 | |||
a7c4ad5e7c | |||
32c2653b0f | |||
a869d677a3 |
@ -21,11 +21,18 @@ void FileScanWorker::run()
|
|||||||
{
|
{
|
||||||
sfr = saver.addFile(path);
|
sfr = saver.addFile(path);
|
||||||
}
|
}
|
||||||
|
catch(LooqsGeneralException &e)
|
||||||
|
{
|
||||||
|
Logger::error() << e.message << Qt::endl;
|
||||||
|
sfr = PROCESSFAIL;
|
||||||
|
}
|
||||||
|
|
||||||
catch(std::exception &e)
|
catch(std::exception &e)
|
||||||
{
|
{
|
||||||
Logger::error() << e.what();
|
Logger::error() << e.what() << Qt::endl;
|
||||||
sfr = PROCESSFAIL; // well...
|
sfr = PROCESSFAIL; // well...
|
||||||
}
|
}
|
||||||
|
|
||||||
emit result({path, sfr});
|
emit result({path, sfr});
|
||||||
if(stopToken->load(std::memory_order_relaxed)) // TODO: relaxed should suffice here, but recheck
|
if(stopToken->load(std::memory_order_relaxed)) // TODO: relaxed should suffice here, but recheck
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user