Commit 2a1f233f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

BackgroundTrackDatabase: Attempt to fix crash after updates

This is a blind try, as the stacktrace doesn't contain enough information to actually diagnose the issue and I fail to reproduce locally.
parent 08d8fffd
......@@ -14,7 +14,17 @@ namespace VLC.Database
public BackgroundTrackDatabase()
{
Initialize();
try
{
Initialize();
}
catch
{
// There seems to be a problem causing the application to crash when trying to migrate the tables.
// If such a case happen, try to drop and recreate the table, cross your fingers, and hope for the best
Drop();
Initialize();
}
}
public void Initialize()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment