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
This commit is contained in:
Sahil Sareen 2015-07-23 23:22:17 +05:30
parent 8ba6bcb992
commit 6d4be6567f

View file

@ -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 ();