From: Duncan Mac-Vicar P Date: Tue, 24 Feb 2009 23:34:13 +0000 (+0100) Subject: check that webserver is stopped before starting X-Git-Tag: 6.6.0~40^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94e90d7c4562080af149c21e534f1d5f10b0e271;p=platform%2Fupstream%2Flibzypp.git check that webserver is stopped before starting --- 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();