From 98abdaa5d54daeb506acefeff901d8c4ba5c9eb6 Mon Sep 17 00:00:00 2001 From: xiphon Date: Sun, 16 Feb 2020 02:52:53 +0000 Subject: build: fix all warnings, treat warnings as errors --- src/daemon/DaemonManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 8d995458..4b873dc5 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "DaemonManager.h" +#include #include #include #include @@ -36,7 +37,6 @@ #include #include #include -#include #include #include #include @@ -173,8 +173,8 @@ bool DaemonManager::stop(NetworkType::Type nettype) bool DaemonManager::startWatcher(NetworkType::Type nettype) const { // Check if daemon is started every 2 seconds - QTime timer; - timer.restart(); + QElapsedTimer timer; + timer.start(); while(true && !m_app_exit && timer.elapsed() / 1000 < DAEMON_START_TIMEOUT_SECONDS ) { QThread::sleep(2); if(!running(nettype)) { -- cgit v1.2.3