mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 05:44:45 -04:00
added extra check when restarting rb service
This commit is contained in:
parent
52b0729b31
commit
c2d47b01df
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ bool RestbedService::restart()
|
||||||
|
|
||||||
bool RestbedService::stop()
|
bool RestbedService::stop()
|
||||||
{
|
{
|
||||||
|
if(!mService->is_up())
|
||||||
|
return true;
|
||||||
|
|
||||||
mService->stop();
|
mService->stop();
|
||||||
|
|
||||||
RsThread::ask_for_stop();
|
RsThread::ask_for_stop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue