ChessEngine: unset stdout_watch_id
https://bugzilla.gnome.org/show_bug.cgi?id=724504
This commit is contained in:
parent
530c4d5747
commit
b2aa1d05e5
1 changed files with 3 additions and 1 deletions
|
@ -158,8 +158,10 @@ public abstract class ChessEngine : Object
|
|||
started = false;
|
||||
|
||||
// This can be unset on errors in read_cb.
|
||||
if (stdout_watch_id != 0)
|
||||
if (stdout_watch_id != 0) {
|
||||
Source.remove (stdout_watch_id);
|
||||
stdout_watch_id = 0;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue