[gnome-chess] ChessEngine: unset stdout_watch_id
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] ChessEngine: unset stdout_watch_id
- Date: Thu, 23 Jul 2015 18:41:26 +0000 (UTC)
commit b2aa1d05e530a9bd5899a31e5387db1e09a26371
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Jul 23 13:40:22 2015 -0500
ChessEngine: unset stdout_watch_id
https://bugzilla.gnome.org/show_bug.cgi?id=724504
src/chess-engine.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/chess-engine.vala b/src/chess-engine.vala
index 2f9c928..aaa7260 100644
--- a/src/chess-engine.vala
+++ b/src/chess-engine.vala
@@ -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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]