mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-26 07:11:08 -04:00
Prepare for merging
This commit is contained in:
parent
b1860d8682
commit
1d4ca64dee
27 changed files with 1442 additions and 992 deletions
|
@ -326,7 +326,20 @@ int main(int argc, char *argv[])
|
|||
|
||||
QString sessionDelayedClose;
|
||||
if(hasMultiCallback)
|
||||
sessionDelayedClose = "RsThread::async( [=](){ std::this_thread::sleep_for(std::chrono::seconds(maxWait+120)); mService->schedule( [=](){ auto session = weakSession.lock(); if(session && session->is_open()) session->close(); } ); } );";
|
||||
sessionDelayedClose =
|
||||
"RsThread::async( [=]()"
|
||||
"{"
|
||||
"std::this_thread::sleep_for("
|
||||
"std::chrono::seconds(maxWait+120) );"
|
||||
"auto lService = weakService.lock();"
|
||||
"if(!lService || lService->is_down()) return;"
|
||||
"lService->schedule( [=]()"
|
||||
"{"
|
||||
"auto session = weakSession.lock();"
|
||||
"if(session && session->is_open())"
|
||||
"session->close();"
|
||||
"} );"
|
||||
"} );";
|
||||
|
||||
QString callbackParamsSerialization;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue