Catch database concurrency exception.

This commit is contained in:
2020-01-02 19:46:32 +00:00
parent 7bf3b25710
commit 16c3c2f9ef

View File

@@ -43,6 +43,7 @@ using DiscImageChef.CommonTypes.Interop;
using DiscImageChef.CommonTypes.Metadata;
using DiscImageChef.Database;
using DiscImageChef.Database.Models;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using Device = DiscImageChef.Devices.Device;
using MediaType = DiscImageChef.CommonTypes.MediaType;
@@ -1067,6 +1068,10 @@ namespace DiscImageChef.Core
{
// Can't connect to the server, do nothing
}
catch(DbUpdateConcurrencyException)
{
// Ignore db concurrency errors
}
// ReSharper disable once RedundantCatchClause
catch