This commit is contained in:
Kyle Huey 2012-08-09 18:06:21 -07:00
Родитель d28df5aea5
Коммит c8132f66bd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -278,6 +278,8 @@ IDBDatabase::CloseInternal(bool aIsDead)
NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
if (!mClosed) {
mClosed = true;
// If we're getting called from Unlink, avoid cloning the DatabaseInfo.
{
nsRefPtr<DatabaseInfo> previousInfo;
@ -300,8 +302,6 @@ IDBDatabase::CloseInternal(bool aIsDead)
NS_ASSERTION(!IndexedDatabaseManager::IsMainProcess(), "Wrong process!");
mActorChild->SendClose(aIsDead);
}
mClosed = true;
}
}