diff --git a/libvirtnbdbackup/nbdcli/client.py b/libvirtnbdbackup/nbdcli/client.py index 3d8c9c93..48597488 100644 --- a/libvirtnbdbackup/nbdcli/client.py +++ b/libvirtnbdbackup/nbdcli/client.py @@ -150,13 +150,9 @@ def connect(self) -> nbd.NBD: retry = retry + 1 continue - if connection: - log.info("Connection to NBD backend succeeded.") - self.connection = connection - return self - - log.info("Waiting for NBD Server, Retry: %s", retry) - retry = retry + 1 + log.info("Connection to NBD backend succeeded.") + self.connection = connection + return self def disconnect(self) -> None: """Close nbd connection handle"""