mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-30 14:19:14 -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
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chrisparker126
						chrisparker126