From ed009313b166da9fd077758a21aa9a328209e7f1 Mon Sep 17 00:00:00 2001 From: Juerg Haefliger Date: Wed, 10 Aug 2011 17:03:23 +0200 Subject: [PATCH] Bugfix: Check stdoutWatch before removing the handler. --- tools/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;