diff options
author | madmaxoft <github@xoft.cz> | 2013-10-06 15:44:40 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-06 15:44:40 +0200 |
commit | d147935853307d97d1380ecab103df4d5f51bfb6 (patch) | |
tree | a20575f7755e47ef458984a01e679bb82c3cc32d /source/HTTPServer | |
parent | Merge branch 'master' into NewWebServer (diff) | |
download | cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar.gz cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar.bz2 cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar.lz cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar.xz cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.tar.zst cuberite-d147935853307d97d1380ecab103df4d5f51bfb6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/HTTPServer/HTTPServer.cpp | 9 | ||||
-rw-r--r-- | source/HTTPServer/HTTPServer.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source/HTTPServer/HTTPServer.cpp b/source/HTTPServer/HTTPServer.cpp index 7e216c629..9636eb59f 100644 --- a/source/HTTPServer/HTTPServer.cpp +++ b/source/HTTPServer/HTTPServer.cpp @@ -127,6 +127,15 @@ cHTTPServer::cHTTPServer(void) : +cHTTPServer::~cHTTPServer() +{ + Stop(); +} + + + + + bool cHTTPServer::Initialize(const AString & a_PortsIPv4, const AString & a_PortsIPv6) { bool HasAnyPort; diff --git a/source/HTTPServer/HTTPServer.h b/source/HTTPServer/HTTPServer.h index 2ecb75fdd..fea2a9029 100644 --- a/source/HTTPServer/HTTPServer.h +++ b/source/HTTPServer/HTTPServer.h @@ -50,6 +50,7 @@ public: } ; cHTTPServer(void); + ~cHTTPServer(); /// Initializes the server on the specified ports bool Initialize(const AString & a_PortsIPv4, const AString & a_PortsIPv6); |