|
|
@ -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) |
|
|
|