diff --git a/build b/build index 3ca9062a..615be700 100644 --- a/build +++ b/build @@ -1 +1 @@ -84 \ No newline at end of file +85 \ No newline at end of file diff --git a/src/AP_WS_Server.cpp b/src/AP_WS_Server.cpp index a4c94343..8ae0022b 100644 --- a/src/AP_WS_Server.cpp +++ b/src/AP_WS_Server.cpp @@ -277,7 +277,7 @@ namespace OpenWifi { break; } else if (waits < 5) { waits++; - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + Poco::Thread::trySleep(10); } else { break; } @@ -313,7 +313,7 @@ namespace OpenWifi { SessionMutex_[i].unlock(); break; } else if (waits < 5) { - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + Poco::Thread::trySleep(10); waits++; } else { break; @@ -336,9 +336,17 @@ namespace OpenWifi { } else { NumberOfConnectedDevices_=0; + int wait=0; for(int i=0;i 0) {