X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e059d69c2ce61b1ba1ae2e0b9c75eb53bb26f1bb..9df197b0346cdea53967bf9ed578ff30e2424100:/lib/components/file_eraser.cpp diff --git a/lib/components/file_eraser.cpp b/lib/components/file_eraser.cpp index bc26bf7c..6cacf045 100644 --- a/lib/components/file_eraser.cpp +++ b/lib/components/file_eraser.cpp @@ -26,14 +26,13 @@ void eBackgroundFileEraser::idle() eBackgroundFileEraser::~eBackgroundFileEraser() { messages.send(Message::quit); - if ( thread_running() ) - kill(); if (instance==this) instance=0; } void eBackgroundFileEraser::thread() { + hasStarted(); nice(5); reset(); runLoop(); @@ -51,8 +50,7 @@ void eBackgroundFileEraser::erase(const char *filename) else { messages.send(Message(Message::erase, strdup(buf))); - if (!thread_running()) - run(); + run(); } } }