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:
Sebastien Boeuf 2021-06-02 16:57:40 +02:00
parent e62aafdf58
commit df92495e31

View File

@ -236,7 +236,7 @@ pub fn connect_vhost_user(
};
sleep(Duration::from_millis(100));
if now.elapsed().as_secs() < 60 {
if now.elapsed().as_secs() >= 60 {
break err;
}
};