ref: refs/heads/master
commit 94e90d7c4562080af149c21e534f1d5f10b0e271
Author: Duncan Mac-Vicar P
Date: Wed Feb 25 00:34:13 2009 +0100
check that webserver is stopped before starting
---
tests/lib/WebServer.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/lib/WebServer.cc b/tests/lib/WebServer.cc
index 030c6f0..4a215ed 100644
--- a/tests/lib/WebServer.cc
+++ b/tests/lib/WebServer.cc
@@ -160,6 +160,12 @@ public:
virtual void start()
{
+ if ( ! _stopped )
+ {
+ MIL << "mongoose server already running, stopping." << endl;
+ stop();
+ }
+
MIL << "Starting shttpd (mongoose)" << endl;
_log.clear();
_ctx = mg_start();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org