Browse Source

Ignore SQLiteException if UDC database is locked.

pull/787/head
Daniel Grunwald 14 years ago
parent
commit
65a130c882
  1. 8
      src/AddIns/Misc/UsageDataCollector/UsageDataCollector/UsageDataSessionWriter.cs

8
src/AddIns/Misc/UsageDataCollector/UsageDataCollector/UsageDataSessionWriter.cs

@ -69,7 +69,13 @@ namespace ICSharpCode.UsageDataCollector
if (isDisposed) if (isDisposed)
return; return;
try { try {
FlushOutstandingChanges(); try {
FlushOutstandingChanges();
} catch (SQLiteException ex) {
// Ignore exception if the DB file is locked
if (ex.ErrorCode != SQLiteErrorCode.Locked)
throw;
}
} catch (Exception ex) { } catch (Exception ex) {
Action<Exception> onException = this.OnException; Action<Exception> onException = this.OnException;
if (onException != null) if (onException != null)

Loading…
Cancel
Save