mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Bugfix: Check stdoutWatch before removing the handler.
This commit is contained in:
parent
cdbb27e3bb
commit
ed009313b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user