Fork of HttpServer_snapshot_mbed-os library
Fork of HttpServer_snapshot_mbed-os by
Diff: HTTPServer.h
- Revision:
- 6:d9e6379eefac
- Parent:
- 4:1b6b021ee21d
- Child:
- 9:d117d5f84994
diff -r b8f6a11c70db -r d9e6379eefac HTTPServer.h --- a/HTTPServer.h Sat Feb 22 05:51:59 2014 +0000 +++ b/HTTPServer.h Fri Aug 21 02:07:48 2015 +0000 @@ -272,7 +272,8 @@ t = -1; for (i = 0; i < THREAD_MAX; i ++) { - if (threads[i] == NULL || threads[i]->get_state() == Thread::WaitingAnd) { + if ((threads[i] == NULL) + || ((threads[i]->get_state() == Thread::WaitingAnd) && (*clients[i].get_address() == 0))) { if (t < 0) t = i; // next empty thread } } @@ -282,5 +283,6 @@ #include "Handler/RPCHandler.h" #include "Handler/FSHandler.h" #include "Handler/SimpleHandler.h" +#include "SnapshotHandler.h" #endif