diff options
Diffstat (limited to 'src/uscxml/server')
-rw-r--r-- | src/uscxml/server/HTTPServer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp index 48f1c89..5066584 100644 --- a/src/uscxml/server/HTTPServer.cpp +++ b/src/uscxml/server/HTTPServer.cpp @@ -530,10 +530,10 @@ void HTTPServer::replyCallback(evutil_socket_t fd, short what, void *arg) { bool HTTPServer::registerServlet(const std::string& path, HTTPServlet* servlet) { HTTPServer* INSTANCE = getInstance(); - + if (!INSTANCE->_httpHandle) return true; - + tthread::lock_guard<tthread::recursive_mutex> lock(INSTANCE->_mutex); // remove trailing and leading slash @@ -569,7 +569,7 @@ bool HTTPServer::registerServlet(const std::string& path, HTTPServlet* servlet) bool HTTPServer::registerServlet(const std::string& path, WebSocketServlet* servlet) { HTTPServer* INSTANCE = getInstance(); - + if (!INSTANCE->_wsHandle) return true; |