AIFetchInventoryFolder bug fix.

Forgot to initialize AIFetchInventoryFolder::mCreate.

Also changed assert as it's possible that a statemachine
is in state bs_initialize while checking for idle
statemachines and another, already running statemachine
created the new statemachine.
This commit is contained in:
Aleric Inglewood
2011-06-14 14:36:15 +02:00
parent a6dfe7837a
commit 26848e99e4
2 changed files with 2 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ class AIFetchInventoryFolder : public AIStateMachine {
void fetch(LLUUID const& parentUUID, std::string const& foldername, bool create = false, bool fetch_contents = true)
{
mParentFolder = parentUUID;
mCreate = create;
mFetchContents = fetch_contents;
if (mFolderName != foldername)
{

View File

@@ -343,7 +343,7 @@ void AIStateMachine::mainloop(void*)
}
else
{
llassert(statemachine.mState == bs_run);
llassert(statemachine.mState == bs_run || statemachine.mState == bs_initialize);
++iter;
}
}