mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
implemented global shut down function, yet to include calls to release
upnp held resources git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@482 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
518b696b27
commit
b8d4bd5ff1
@ -59,7 +59,6 @@ int RsServer::ConfigAddSharedDir( std::string dir )
|
||||
/* does its own locking */
|
||||
UpdateAllConfig();
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
int RsServer::ConfigRemoveSharedDir( std::string dir )
|
||||
@ -299,7 +298,7 @@ int RsServer::UpdateAllConfig()
|
||||
/* ports */
|
||||
config.localAddr = inet_ntoa(pstate.localaddr.sin_addr);
|
||||
config.localPort = ntohs(pstate.localaddr.sin_port);
|
||||
|
||||
|
||||
config.firewalled = true;
|
||||
config.forwardPort = true;
|
||||
|
||||
@ -342,4 +341,7 @@ void RsServer::ConfigFinalSave()
|
||||
mConfigMgr->completeConfiguration();
|
||||
}
|
||||
|
||||
|
||||
void RsServer::rsGlobalShutDown()
|
||||
{
|
||||
ConfigFinalSave(); // save configuration before exit
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user