|
|
@ -527,7 +527,7 @@ namespace client |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!m_Pool || !IsReady ()) |
|
|
|
if (!m_Pool || !IsReady ()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (requestComplete) requestComplete (false); |
|
|
|
if (requestComplete) requestComplete (nullptr); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, shared_from_this (), dest, requestComplete)); |
|
|
|
m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, shared_from_this (), dest, requestComplete)); |
|
|
@ -630,7 +630,7 @@ namespace client |
|
|
|
|
|
|
|
|
|
|
|
if (done) |
|
|
|
if (done) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (it->second->requestComplete) it->second->requestComplete (false); |
|
|
|
if (it->second->requestComplete) it->second->requestComplete (nullptr); |
|
|
|
delete it->second; |
|
|
|
delete it->second; |
|
|
|
m_LeaseSetRequests.erase (it); |
|
|
|
m_LeaseSetRequests.erase (it); |
|
|
|
} |
|
|
|
} |
|
|
|