mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
virtio-devices: vhost_user: Fix connection retry logic
The logic was reversed, causing the retry to fail consistently. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
e62aafdf58
commit
df92495e31
@ -236,7 +236,7 @@ pub fn connect_vhost_user(
|
|||||||
};
|
};
|
||||||
sleep(Duration::from_millis(100));
|
sleep(Duration::from_millis(100));
|
||||||
|
|
||||||
if now.elapsed().as_secs() < 60 {
|
if now.elapsed().as_secs() >= 60 {
|
||||||
break err;
|
break err;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user