mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed compilation by modifying wrappers to account for the shared_ptr mService
This commit is contained in:
parent
009ed54ce2
commit
b8b7d103e1
9 changed files with 33 additions and 57 deletions
|
@ -55,7 +55,7 @@ $%callbackParamsSerialization%$
|
|||
sStream << "data: " << compactJSON << ctx.mJson << "\n\n";
|
||||
const std::string message = sStream.str();
|
||||
|
||||
mService.schedule( [weakSession, message]()
|
||||
mService->schedule( [weakSession, message]()
|
||||
{
|
||||
auto session = weakSession.lock();
|
||||
if(!session || session->is_closed()) return;
|
||||
|
|
|
@ -326,7 +326,7 @@ 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)); mService->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