ChessEngine: unset stdout_watch_id

https://bugzilla.gnome.org/show_bug.cgi?id=724504
This commit is contained in:
Michael Catanzaro 2015-07-23 13:40:22 -05:00
parent 530c4d5747
commit b2aa1d05e5

View file

@ -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
{