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:
parent
5c32ecfa7c
commit
df5f765bf3
@ -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() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user