Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
"else" was left from refactoring.
  • Loading branch information
manup committed Apr 26, 2021
1 parent 1d092f8 commit ea37a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poll_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void PollManager::pollTimerFired()
quint16 maxInterval = val.maxInterval > 0 && val.maxInterval < 65535 ? (val.maxInterval * 3 / 2) : reportWaitTime;

// This should truely compensates missing reports and poll at startup until a report comes in, prevents unnecessary polling
else if (val.timestampLastReport.isValid() && val.timestampLastReport.secsTo(now) < maxInterval)
if (val.timestampLastReport.isValid() && val.timestampLastReport.secsTo(now) < maxInterval)
{
fresh++;
}
Expand Down

0 comments on commit ea37a53

Please sign in to comment.