Skip to content
Snippets Groups Projects
Commit bb329f73 authored by Sergey Linev's avatar Sergey Linev Committed by Bertrand Bellenot
Browse files

http: small fix in TCivetWeb engine

parent a9225655
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
class TCivetweb : public THttpEngine { class TCivetweb : public THttpEngine {
protected: protected:
void *fCtx; ///<! civetweb context void *fCtx; ///<! civetweb context
void *fCallbacks; ///<! call-back table for civetweb webserver void *fCallbacks; ///<! call-back table for civetweb webserver
TString fTopName; ///<! name of top item TString fTopName; ///<! name of top item
Bool_t fDebug; ///<! debug mode Bool_t fDebug; ///<! debug mode
Bool_t fTerminating; ///<! server doing shutdown and not react on requests Bool_t fTerminating; ///<! server doing shutdown and not react on requests
virtual void Terminate() override { fTerminating = kTRUE; } virtual void Terminate() override { fTerminating = kTRUE; }
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
TCivetweb(); TCivetweb();
virtual ~TCivetweb(); virtual ~TCivetweb();
virtual Bool_t Create(const char *args); virtual Bool_t Create(const char *args) override;
const char *GetTopName() const { return fTopName.Data(); } const char *GetTopName() const { return fTopName.Data(); }
......
...@@ -353,7 +353,7 @@ ClassImp(TCivetweb); ...@@ -353,7 +353,7 @@ ClassImp(TCivetweb);
TCivetweb::TCivetweb() TCivetweb::TCivetweb()
: THttpEngine("civetweb", "compact embedded http server"), fCtx(nullptr), fCallbacks(nullptr), fTopName(), : THttpEngine("civetweb", "compact embedded http server"), fCtx(nullptr), fCallbacks(nullptr), fTopName(),
fDebug(kFALSE), fShutdown(kFALSE) fDebug(kFALSE), fTerminating(kFALSE)
{ {
} }
...@@ -362,7 +362,7 @@ TCivetweb::TCivetweb() ...@@ -362,7 +362,7 @@ TCivetweb::TCivetweb()
TCivetweb::~TCivetweb() TCivetweb::~TCivetweb()
{ {
fShutdown = kTRUE; fTerminating = kTRUE;
if (fCtx) if (fCtx)
mg_stop((struct mg_context *)fCtx); mg_stop((struct mg_context *)fCtx);
if (fCallbacks) if (fCallbacks)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment