Assert that the ChessEngine has been stopped before it is destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=724504
This commit is contained in:
parent
6d4be6567f
commit
48202d6672
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@ public abstract class ChessEngine : Object
|
|||
this.delay_seconds = delay_seconds;
|
||||
}
|
||||
|
||||
~ChessEngine ()
|
||||
{
|
||||
assert(!started);
|
||||
}
|
||||
|
||||
public bool start ()
|
||||
requires (pid == 0)
|
||||
requires (child_watch_id == 0)
|
||||
|
|
Loading…
Reference in a new issue