Skip to content

Commit

Permalink
catch exceptions thrown in ai::holder dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent 7b0c4e6 commit c65d367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ai/manager.cpp
Expand Up @@ -108,9 +108,11 @@ void holder::init( side_number side )

holder::~holder()
{
try {
if (this->ai_) {
LOG_AI_MANAGER << describe_ai() << "Managed AI will be deleted" << std::endl;
}
} catch (...) {}
delete this->default_ai_context_;
delete this->readwrite_context_;
delete this->readonly_context_;
Expand Down

0 comments on commit c65d367

Please sign in to comment.