diff options
| author | Stefan Boberg <[email protected]> | 2023-05-11 13:37:33 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-11 13:37:33 +0200 |
| commit | 964d1bae6ece1b026e443967139ed18fa08fd9fe (patch) | |
| tree | 48041b36083fbb712b649f12b6197ecd17dec62e /src/zenhttp/httpsys.cpp | |
| parent | added scrubcontext.cpp (diff) | |
| parent | v0.2.10 (diff) | |
| download | zen-964d1bae6ece1b026e443967139ed18fa08fd9fe.tar.xz zen-964d1bae6ece1b026e443967139ed18fa08fd9fe.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'src/zenhttp/httpsys.cpp')
| -rw-r--r-- | src/zenhttp/httpsys.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zenhttp/httpsys.cpp b/src/zenhttp/httpsys.cpp index c733d618d..25e4393b3 100644 --- a/src/zenhttp/httpsys.cpp +++ b/src/zenhttp/httpsys.cpp @@ -741,9 +741,19 @@ HttpSysServer::~HttpSysServer() { if (m_IsHttpInitialized) { + ZEN_ERROR("~HttpSysServer() called without calling Close() first"); + } +} + +void +HttpSysServer::Close() +{ + if (m_IsHttpInitialized) + { Cleanup(); HttpTerminate(HTTP_INITIALIZE_SERVER, nullptr); + m_IsHttpInitialized = false; } } |