summaryrefslogblamecommitdiff
path: root/user/lxqt-session/fix-chrono.patch
blob: ea1e660486b31978eeaed56b51e6436ef5e9d876 (plain) (tree)


















                                                                                                                      
diff -Nurd lxqt-session-0.17.0/lxqt-session/src/procreaper.cpp lxqt-session-0.17.0.new/lxqt-session/src/procreaper.cpp
--- lxqt-session-0.17.0/lxqt-session/src/procreaper.cpp	2021-04-13 17:37:02.000000000 +0000
+++ lxqt-session-0.17.0.new/lxqt-session/src/procreaper.cpp	2021-07-21 09:20:28.959046533 +0000
@@ -58,7 +58,7 @@
         if (pid <= 0)
         {
             QMutexLocker guard{&mMutex};
-            mWait.wait(&mMutex, std::chrono::seconds(1));
+            mWait.wait(&mMutex, std::chrono::seconds(1).count());
         }
 
         int status;
@@ -111,5 +111,5 @@
         QMutexLocker guard{&mMutex};
         mShouldRun = false;
     }
-    QThread::wait(std::chrono::seconds(5));
+    QThread::wait(std::chrono::seconds(5).count());
 }