Bug 758688 - Thunderbird Bloat & Mozmill tests - Assertion failure: !connections[i]->ConnectionReady(), mozStorageService.cpp:852. r=florian. a=mbanner.

CLOSED TREE.
This commit is contained in:
Rafael Ávila de Espíndola 2012-05-28 11:10:11 -04:00
Родитель ad4885de5e
Коммит a024b3a969
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -121,8 +121,17 @@ this.__defineGetter__("DBConn", function() {
if (gDBConnWithPendingTransaction)
return gDBConnWithPendingTransaction;
if (!gDBConnection)
if (!gDBConnection) {
gDBConnection = getDBConnection();
function dbClose(aSubject, aTopic, aData) {
Services.obs.removeObserver(dbClose, aTopic);
if (gDBConnection) {
gDBConnection.asyncClose();
gDBConnection = null;
}
}
Services.obs.addObserver(dbClose, "profile-before-change", false);
}
gDBConnWithPendingTransaction = gDBConnection;
gDBConnection.beginTransaction();
executeSoon(function() {