[gnome-boxes] ovirt: Return from connect_display() if cancelled



commit 304fb99ab30d6ad6692d383de7fca985f9bce758
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jul 28 14:49:53 2015 +0100

    ovirt: Return from connect_display() if cancelled
    
    connect_display() should not continue trying to connect if connection
    was cancelled during the time we were trying to start the machine.

 src/ovirt-machine.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ovirt-machine.vala b/src/ovirt-machine.vala
index 87f8dc4..832a151 100644
--- a/src/ovirt-machine.vala
+++ b/src/ovirt-machine.vala
@@ -33,6 +33,8 @@ private class Boxes.OvirtMachine: Boxes.Machine {
                 this.update_state ();
             } catch (IOError.CANCELLED error) {
                 debug ("connection to %s was cancelled", name);
+
+                return;
             } catch (GLib.Error error) {
                 throw new Boxes.Error.INVALID ("Couldn't start oVirt VM '%s': %s", vm.name, error.message);
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]