mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix collision of devices in master db update.
This commit is contained in:
@@ -284,11 +284,15 @@ namespace DiscImageChef.Core
|
||||
if(existing != null)
|
||||
{
|
||||
modifiedDevices++;
|
||||
|
||||
mctx.Remove(existing);
|
||||
|
||||
existing = new Device(device)
|
||||
{
|
||||
Id = device.Id, OptimalMultipleSectorsRead = device.OptimalMultipleSectorsRead
|
||||
};
|
||||
mctx.Devices.Update(existing);
|
||||
|
||||
mctx.Devices.Add(existing);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user