|
|
@ -454,8 +454,10 @@ typedef NSData *_Nullable (^CreateDatabaseMetadataBlock)(void);
|
|
|
|
- (YapDatabaseConnection *)newDatabaseConnection
|
|
|
|
- (YapDatabaseConnection *)newDatabaseConnection
|
|
|
|
{
|
|
|
|
{
|
|
|
|
YapDatabaseConnection *dbConnection = self.database.newConnection;
|
|
|
|
YapDatabaseConnection *dbConnection = self.database.newConnection;
|
|
|
|
|
|
|
|
if (!dbConnection) {
|
|
|
|
OWSRaiseException(
|
|
|
|
OWSRaiseException(
|
|
|
|
@"OWSStorageExceptionName_CouldNotOpenConnection", @"Storage could not open new database connection.");
|
|
|
|
@"OWSStorageExceptionName_CouldNotOpenConnection", @"Storage could not open new database connection.");
|
|
|
|
|
|
|
|
}
|
|
|
|
return dbConnection;
|
|
|
|
return dbConnection;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|