Fixup jsonapi server stopping

This commit is contained in:
Gioacchino Mazzurco 2020-01-08 23:16:05 +01:00
parent f12ec2b535
commit 33c2f56a8e
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -605,7 +605,7 @@ void JsonApiServer::restart()
void JsonApiServer::onStopRequested()
{
RS_STACK_MUTEX(mServiceMutex);
if(mService->is_up()) mService->stop();
mService->stop();
}
uint16_t JsonApiServer::listeningPort() const { return mListeningPort; }