mirror of
https://github.com/bykof/cordova-plugin-webserver.git
synced 2026-05-09 00:00:04 +08:00
Sleep for 1 Millisecond
This commit is contained in:
@@ -77,7 +77,7 @@ public class NanoHTTPDWebserver extends NanoHTTPD{
|
|||||||
|
|
||||||
while (!this.webserver.responses.containsKey(requestUUID)) {
|
while (!this.webserver.responses.containsKey(requestUUID)) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(1);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user