mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fixed marr threading bug.
datamapper instances should not be reused!!!
This commit is contained in:
@@ -5,7 +5,7 @@ namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public interface IDatabase
|
||||
{
|
||||
IDataMapper DataMapper { get; }
|
||||
IDataMapper GetDataMapper();
|
||||
}
|
||||
|
||||
public class Database : IDatabase
|
||||
@@ -17,12 +17,9 @@ namespace NzbDrone.Core.Datastore
|
||||
_dataMapperFactory = dataMapperFactory;
|
||||
}
|
||||
|
||||
public IDataMapper DataMapper
|
||||
public IDataMapper GetDataMapper()
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dataMapperFactory();
|
||||
}
|
||||
return _dataMapperFactory();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user