Clear the command queue after flushing statemachines

Flushing the state machines can cause remove commands to be added to the
command queue, so clearing it needs to be after.
This commit is contained in:
Aleric Inglewood
2012-11-19 04:01:54 +01:00
parent 52673f5249
commit 2400d146ce
3 changed files with 12 additions and 2 deletions

View File

@@ -418,6 +418,7 @@ void cleanupCurl(void)
if (CurlMultiHandle::getTotalMultiHandles() != 0)
llwarns << "Not all CurlMultiHandle objects were destroyed!" << llendl;
AIStateMachine::flush();
clearCommandQueue();
Stats::print();
ssl_cleanup();