mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
fixed restart of webui
This commit is contained in:
parent
b8b7d103e1
commit
d1a9f839a4
5 changed files with 16 additions and 12 deletions
|
@ -141,10 +141,6 @@ public:
|
|||
*/
|
||||
void setNewAccessRequestCallback(const std::function<bool(const std::string&,std::string&)>& callback );
|
||||
|
||||
protected:
|
||||
/// @see RsSingleJobThread
|
||||
virtual void run();
|
||||
|
||||
private:
|
||||
|
||||
/// @see p3Config::setupSerialiser
|
||||
|
|
|
@ -31,6 +31,14 @@ RestbedService::RestbedService()
|
|||
mBindingAddress = "127.0.0.1";
|
||||
}
|
||||
|
||||
bool RestbedService::restart()
|
||||
{
|
||||
stop();
|
||||
start("Restbed Service");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RestbedService::stop()
|
||||
{
|
||||
mService->stop();
|
||||
|
|
|
@ -31,11 +31,10 @@ class RestbedService: public RsThread
|
|||
{
|
||||
public:
|
||||
RestbedService() ;
|
||||
virtual ~RestbedService();
|
||||
virtual ~RestbedService() = default;
|
||||
|
||||
bool restart();
|
||||
bool stop();
|
||||
bool isRunning() const;
|
||||
|
||||
void setListeningPort(uint16_t port) ;
|
||||
void setBindAddress(const std::string& bind_address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue