Update code

This commit is contained in:
Nick Peng
2018-06-09 00:08:06 +08:00
parent 4a6b0baddd
commit b05dd784bc
4 changed files with 27 additions and 11 deletions

View File

@@ -495,8 +495,9 @@ static void *_dns_client_work(void *arg)
int sleep_time;
unsigned int expect_time = 0;
now = get_tick_count() - sleep;
expect_time = now + sleep;
sleep_time = sleep;
now = get_tick_count() - sleep;
expect_time = now + sleep;
while (client.run) {
now = get_tick_count();
if (now >= expect_time) {