diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index 6e8b0d9d5..e1d84d2d7 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -284,7 +284,7 @@ int main(int argc, char* argv[]) if(jsonApiServer) jsonApiServer->authorizeToken("webui:"+webui_pass1); - std::atomic keepRunning = true; + std::atomic keepRunning(true); rsControl->setShutdownCallback([&](int){keepRunning = false;}); while(keepRunning)