From 72aaf5e065351b52a3ed376f6f31186f2ce6da64 Mon Sep 17 00:00:00 2001 From: EndrII Date: Thu, 16 Aug 2018 22:29:25 +0300 Subject: [PATCH] fix count of sync --- sync/ETcpSocket.cpp | 1 - sync/config.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sync/ETcpSocket.cpp b/sync/ETcpSocket.cpp index d1e919a..afad175 100755 --- a/sync/ETcpSocket.cpp +++ b/sync/ETcpSocket.cpp @@ -115,7 +115,6 @@ bool ETcpSocket::_driverResponse(const SyncPackage& from) { auto ping = from.getPing(); if (ping > 10) { - sync(); return false; } diff --git a/sync/config.h b/sync/config.h index 7d65efa..10ed645 100644 --- a/sync/config.h +++ b/sync/config.h @@ -25,7 +25,7 @@ #define RESYNC_TIME 1000 // 1 sec on millisec #define MAX_RESYNC_COUNT 3 #define SYNC_TIME 5 * 1000 // 5 sec on millisec -#define SYNC_COUNT 10 +#define SYNC_COUNT 100 #define DEEP_SCANER_INTERVAL 1000 // 1 sec // sync