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:
chrisparker126 2008-04-06 20:57:36 +00:00
parent 518b696b27
commit b8d4bd5ff1

View File

@ -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
}