Permalink
Browse files

Reorder requires conditions on engine_stopped_cb

Check started first and then pid as engine being started
is the primary condition post which the pid should be enforced.
https://bugzilla.gnome.org/show_bug.cgi?id=724504
  • Loading branch information...
1 parent 8ba6bcb commit 6d4be6567f10ca570de3381ad14e2ec8a8138c6c @sahilsareen sahilsareen committed Jul 23, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/chess-engine.vala
View
@@ -106,8 +106,8 @@ public abstract class ChessEngine : Object
}
private void engine_stopped_cb (Pid pid)
- requires (pid == this.pid)
requires (started)
+ requires (pid == this.pid)
{
stop (false);
stopped_unexpectedly ();

0 comments on commit 6d4be65

Please sign in to comment.