1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #2166: Infinite timeouts

This commit is contained in:
Ruben S. Montero 2018-06-08 22:16:13 +02:00
parent 364e729060
commit be31d4e440

View File

@ -260,7 +260,14 @@ int Client::call(const std::string& endpoint, const std::string& method,
client.setInterrupt(&int_flag);
client.finishAsync(_timeout);
if ( _timeout == 0 )
{
client.finishAsync(xmlrpc_c::timeout());
}
else
{
client.finishAsync(_timeout);
}
if ( rpc_client->isFinished() )
{