]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Bugfix: Check stdoutWatch before removing the handler.
authorJuerg Haefliger <juerg.haefliger@hp.com>
Wed, 10 Aug 2011 15:03:23 +0000 (17:03 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 10 Aug 2011 15:23:44 +0000 (09:23 -0600)
tools/console.c

index 11087e5dcbfb3a6d7d56410207a17cfd0306e5c9..171ebc9845ba73f91dded9eda8715605543a41bb 100644 (file)
@@ -95,7 +95,7 @@ virConsoleShutdown(virConsolePtr con)
         virStreamFree(con->st);
     if (con->stdinWatch != -1)
         virEventRemoveHandle(con->stdinWatch);
-    if (con->stdinWatch != -1)
+    if (con->stdoutWatch != -1)
         virEventRemoveHandle(con->stdoutWatch);
     con->stdinWatch = -1;
     con->stdoutWatch = -1;