[gnome-boxes] Remove a redundant check



commit a4e1ec099b43fcaa849b67da59c733b247e421f3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Oct 27 17:35:56 2011 +0300

    Remove a redundant check
    
    The check is already performed by the outer 'if'.

 src/libvirt-machine.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 000e898..37d606e 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -43,7 +43,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
                 } catch (GLib.Error error) {
                     warning (error.message);
                 }
-            } else if (state != DomainState.RUNNING) {
+            } else {
                 started_id = domain.started.connect (() => {
                     domain.disconnect (started_id);
                     started_id = 0;



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