Skip to content
Snippets Groups Projects
Commit 5e3605f5 authored by Tomasz Grabiec's avatar Tomasz Grabiec Committed by Pekka Enberg
Browse files

imgedit: simplify the loop

parent 9976ddcd
No related branches found
No related tags found
No related merge requests found
......@@ -56,15 +56,11 @@ class nbd_file(object):
shell = True, stdout=_devnull)
# wait for qemu-nbd to start: this thing doesn't tell anything on stdout
while True:
succeed = True
try:
self._client = nbd_client("localhost")
break
except:
time.sleep(0.1)
succeed = False
pass
if succeed:
break
self._closed = False
def __del__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment