Be sure book file is closed before we leave

Move closing of file in Book destructor. This
guarantees us against leaving the file open under
any case and simplifies also Book use.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-05-07 09:27:38 +02:00
parent a03b8074c8
commit 2155fb7825
4 changed files with 13 additions and 9 deletions

View File

@@ -119,7 +119,6 @@ namespace {
if (token == "quit")
{
OpeningBook.close();
stop_threads();
quit_eval();
exit(0);