[gnome-mahjongg] Stop the timer when resetting the game



commit 51d0e06c2678237c0fc1bbafea14659f529e064a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 19 19:16:46 2014 -0600

    Stop the timer when resetting the game
    
    This fixes a spew of critical warnings when we attempt to use a null
    clock in Game.timeout_cb()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724389

 src/game.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index f01bba0..72091e2 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -252,6 +252,7 @@ public class Game
 
     public void reset ()
     {
+        stop_clock ();
         clock = null;
         clock_elapsed = 0.0;
         selected_tile = null;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]