Commit bfc78404 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Don't use a QWaitCondition to do a dummy sleep

parent 9b35bb68
Pipeline #138338 passed with stage
in 4 minutes and 1 second
......@@ -8,8 +8,6 @@
#include "application.h"
#include "version.h"
#include <QMutex>
#include <QWaitCondition>
#include <QCommandLineParser>
#include <KAboutData>
......@@ -17,6 +15,8 @@
#include <Kdelibs4ConfigMigrator>
#include <KDBusService>
#include <chrono>
#include <thread>
int main(int argc, char* argv[])
{
......@@ -121,10 +121,7 @@ int main(int argc, char* argv[])
if (ok)
{
QMutex dummy;
dummy.lock();
QWaitCondition waitCondition;
waitCondition.wait(&dummy, delay);
std::this_thread::sleep_for(std::chrono::milliseconds(delay));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment