fix:make sure to drop the database also when drop listeners fail
@@ -869,7 +869,6 @@ public class OrientDBEmbedded implements OrientDBInternal {
db.close();
} finally {
ODatabaseRecordThreadLocal.instance().set(current);
- }
synchronized (this) {
if (exists(name, user, password)) {
OAbstractPaginatedStorage storage = getOrInitStorage(name);
@@ -885,6 +884,7 @@ public class OrientDBEmbedded implements OrientDBInternal {
}
}
}
+ }
protected interface DatabaseFound {
void found(String name);
