mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fixed start/stop of webinterface from GUI
This commit is contained in:
parent
d19d1685de
commit
9007d266a8
6 changed files with 43 additions and 17 deletions
|
@ -452,7 +452,22 @@ void JsonApiServer::setNewAccessRequestCallback(
|
|||
const std::function<bool (const std::string&)>& callback )
|
||||
{ mNewAccessRequestCallback = callback; }
|
||||
|
||||
void JsonApiServer::shutdown() { mService.stop(); }
|
||||
void JsonApiServer::shutdown()
|
||||
{
|
||||
mService.stop();
|
||||
|
||||
RsThread::ask_for_stop();
|
||||
|
||||
std::cerr << "Stopping JsonApiServer" ;
|
||||
|
||||
while(isRunning())
|
||||
{
|
||||
sleep(1);
|
||||
std::cerr << "." ;
|
||||
std::cerr.flush();
|
||||
}
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
|
||||
bool JsonApiServer::requestNewTokenAutorization(const std::string& token)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue