aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/servers/httpplugin.cpp')
-rw-r--r--src/zenhttp/servers/httpplugin.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/zenhttp/servers/httpplugin.cpp b/src/zenhttp/servers/httpplugin.cpp
index 7ee4c6e62..b9217ed87 100644
--- a/src/zenhttp/servers/httpplugin.cpp
+++ b/src/zenhttp/servers/httpplugin.cpp
@@ -790,23 +790,17 @@ HttpPluginServerImpl::OnRun(bool IsInteractive)
{
ZEN_MEMSCOPE(GetHttppluginTag());
- const bool TestMode = !IsInteractive;
-
- int WaitTimeout = -1;
- if (!TestMode)
- {
- WaitTimeout = 1000;
- }
+ const int WaitTimeout = 1000;
# if ZEN_PLATFORM_WINDOWS
- if (TestMode == false)
+ if (IsInteractive)
{
ZEN_CONSOLE("Zen Server running (plugin HTTP). Press ESC or Q to quit");
}
do
{
- if (!TestMode && _kbhit() != 0)
+ if (IsInteractive && _kbhit() != 0)
{
char c = (char)_getch();
@@ -819,7 +813,7 @@ HttpPluginServerImpl::OnRun(bool IsInteractive)
m_ShutdownEvent.Wait(WaitTimeout);
} while (!IsApplicationExitRequested());
# else
- if (TestMode == false)
+ if (IsInteractive)
{
ZEN_CONSOLE("Zen Server running (plugin HTTP). Ctrl-C to quit");
}