summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Reporting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Core/Reporting.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Reporting.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Reporting.cs b/src/DotNetOpenAuth.Core/Reporting.cs
index 951bb7c..80a3374 100644
--- a/src/DotNetOpenAuth.Core/Reporting.cs
+++ b/src/DotNetOpenAuth.Core/Reporting.cs
@@ -519,8 +519,12 @@ namespace DotNetOpenAuth {
SendStats();
} catch (Exception ex) {
// Something bad and unexpected happened. Just deactivate to avoid more trouble.
- Logger.Library.Error("Error while trying to submit statistical report.", ex);
- broken = true;
+ try {
+ broken = true;
+ Logger.Library.Error("Error while trying to submit statistical report.", ex);
+ } catch (Exception) {
+ // swallow exceptions to prevent a crash.
+ }
}
});
}