GUI: print error dialog when indexing cant start because of other indexer active (ie: the monitor)
This commit is contained in:
parent
4869dfa775
commit
bbb2593461
@ -88,6 +88,11 @@ void IdxThread::run()
|
|||||||
|
|
||||||
Pidfile pidfile(myconf->getPidfile());
|
Pidfile pidfile(myconf->getPidfile());
|
||||||
if (pidfile.open() != 0) {
|
if (pidfile.open() != 0) {
|
||||||
|
// Have to sleep a little here else the main thread
|
||||||
|
// won't see the status change because it only tests
|
||||||
|
// after seeing IDXTS_NULL at least once. Better
|
||||||
|
// interlock needed...
|
||||||
|
sleep(2);
|
||||||
indexingstatus = IDXTS_ERROR;
|
indexingstatus = IDXTS_ERROR;
|
||||||
indexingReason = "Indexing failed: other process active? " +
|
indexingReason = "Indexing failed: other process active? " +
|
||||||
pidfile.getreason();
|
pidfile.getreason();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user