fixed bug: close socket when ping() exit.

This commit is contained in:
aozima 2014-06-14 21:49:46 +08:00
parent fbe4d59db2
commit f296c582a5
2 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,8 @@ rt_err_t ping(char* target, rt_uint32_t time, rt_size_t size)
rt_thread_delay(PING_DELAY); /* take a delay */
}
lwip_close(s);
return RT_EOK;
}

View File

@ -166,6 +166,8 @@ rt_err_t ping(char* target, rt_uint32_t time, rt_size_t size)
rt_thread_delay(PING_DELAY); /* take a delay */
}
lwip_close(s);
return RT_EOK;
}