Use adb_sleep_ms for Cygwin compat

Change-Id: Iabb2cddfb6740a35e4b6b1563a81b64972c29453
This commit is contained in:
Kenny Root 2011-06-15 20:03:49 -07:00
parent f8754337d8
commit b0a8aae3ed

View file

@ -195,7 +195,7 @@ static void local_socket_close(asocket *s)
if (s->kick_on_close && s->transport) {
kick_transport(s->transport);
/* delay to work around a race condition */
sleep(1);
adb_sleep_ms(1000);
}
#endif
adb_mutex_lock(&socket_list_lock);