summaryrefslogtreecommitdiffstats
path: root/src/uscxml/server/HTTPServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/server/HTTPServer.cpp')
-rw-r--r--src/uscxml/server/HTTPServer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp
index aa43002..29dd9a6 100644
--- a/src/uscxml/server/HTTPServer.cpp
+++ b/src/uscxml/server/HTTPServer.cpp
@@ -736,7 +736,9 @@ void HTTPServer::start() {
void HTTPServer::run(void* instance) {
HTTPServer* INSTANCE = (HTTPServer*)instance;
while(INSTANCE->_isRunning) {
- event_base_dispatch(INSTANCE->_base);
+ // getting this to be non-polling is somewhat tricky and changes among versions
+ event_base_loop(INSTANCE->_base, EVLOOP_ONCE | EVLOOP_NO_EXIT_ON_EMPTY);
+// event_base_dispatch(INSTANCE->_base);
}
LOGD(USCXML_INFO) << "HTTP Server stopped" << std::endl;
}