mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-02 10:51:45 +02:00
changed logging
This commit is contained in:
parent
dbf44b0220
commit
48ac9d2209
3 changed files with 15 additions and 11 deletions
|
@ -30,7 +30,7 @@ void TimeProvider::setDiffToServer(double ms)
|
|||
{
|
||||
long now = chronos::getTickCount();
|
||||
/// clear diffBuffer if last update is older than a minute
|
||||
if (now > lastTimeSync_ + 60*1000)
|
||||
if (!diffBuffer_.empty() && (now > lastTimeSync_ + 60*1000))
|
||||
{
|
||||
logO << "Last time sync older than a minute. Clearing time buffer\n";
|
||||
diffToServer_ = ms*1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue