Fixed some crashes
This commit is contained in:
@@ -15,7 +15,9 @@ void LicenceRequest::handlePacketDisconnect(const std::string& message) {
|
||||
* Test if we have a result. If so and the license is invalid then we could use that result
|
||||
*/
|
||||
if(this->response && !this->response->license_valid) {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
try {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
} catch(threads::InvalidFutureException& ex) {}
|
||||
} else {
|
||||
LICENSE_FERR(this, UnexcpectedDisconnectException, "Remote side closed the connection unexpectedly (" + message + ")");
|
||||
}
|
||||
@@ -119,7 +121,9 @@ void LicenceRequest::handlePacketInfoAdjustment(const std::string& message) {
|
||||
this->callback_update_certificate(cert);
|
||||
}
|
||||
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
try {
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
} catch(threads::InvalidFutureException& ex) {}
|
||||
this->response = nullptr;
|
||||
|
||||
this->disconnect("query succeeded!");
|
||||
|
||||
Reference in New Issue
Block a user