[gnome-chess] Don't try to stop game twice on engine bug
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Don't try to stop game twice on engine bug
- Date: Wed, 25 Jun 2014 16:50:26 +0000 (UTC)
commit 9f9afa40443bf4f10f759996c5c7ec3bce08cc5b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Jun 25 10:39:58 2014 -0500
Don't try to stop game twice on engine bug
src/gnome-chess.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index d4ea2b4..cc53606 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -739,7 +739,7 @@ public class ChessApplication : Gtk.Application
*/
var original_game = game;
Timeout.add_seconds (2, () => {
- if (game == original_game)
+ if (game == original_game && game.is_started)
game.stop (ChessResult.BUG, ChessRule.BUG);
/* Disconnect from the main loop */
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]