From c2d47b01df940216104ae23dbc6514d7ca184238 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 24 Nov 2019 09:40:35 +0100 Subject: [PATCH] added extra check when restarting rb service --- libretroshare/src/jsonapi/restbedservice.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/jsonapi/restbedservice.cc b/libretroshare/src/jsonapi/restbedservice.cc index 22dae7288..ce9b08164 100644 --- a/libretroshare/src/jsonapi/restbedservice.cc +++ b/libretroshare/src/jsonapi/restbedservice.cc @@ -41,6 +41,9 @@ bool RestbedService::restart() bool RestbedService::stop() { + if(!mService->is_up()) + return true; + mService->stop(); RsThread::ask_for_stop();