mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
moved rsGlobalShutDown from MainWindow::doQuit to main
rsGlobalShutDown now cleans the threads and some memory on exit git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3028 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b80aef1228
commit
334c9b61d3
13 changed files with 61 additions and 16 deletions
|
@ -170,5 +170,7 @@ void RsServer::rsGlobalShutDown()
|
|||
mChannels->cleanUpOldFiles();
|
||||
ConfigFinalSave(); // save configuration before exit
|
||||
mConnMgr->shutdown(); /* Handles UPnP */
|
||||
}
|
||||
|
||||
join();
|
||||
ftserver->StopThreads();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ void RsServer::run()
|
|||
int min = 0;
|
||||
int loop = 0;
|
||||
|
||||
while(1)
|
||||
while(m_bRun)
|
||||
{
|
||||
#ifndef WINDOWS_SYS
|
||||
usleep((int) (timeDelta * 1000000));
|
||||
|
|
|
@ -1508,7 +1508,6 @@ bool RsInit::RsStoreAutoLogin()
|
|||
DataIn.cbData = cbDataInput;
|
||||
DataEnt.pbData = pbDataEnt;
|
||||
DataEnt.cbData = cbDataEnt;
|
||||
LPWSTR pDescrOut = NULL;
|
||||
|
||||
CRYPTPROTECT_PROMPTSTRUCT prom;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue