mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
fixed marr threading bug.
datamapper instances should not be reused!!!
This commit is contained in:
parent
440a128f28
commit
28a919e74a
5 changed files with 24 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue