From: Juerg Haefliger Date: Wed, 10 Aug 2011 15:03:23 +0000 (+0200) Subject: Bugfix: Check stdoutWatch before removing the handler. X-Git-Tag: v0.9.5-rc1~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed009313b166da9fd077758a21aa9a328209e7f1;p=thirdparty%2Flibvirt.git Bugfix: Check stdoutWatch before removing the handler. --- diff --git a/tools/console.c b/tools/console.c index 11087e5dcb..171ebc9845 100644 --- a/tools/console.c +++ b/tools/console.c @@ -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;