[smuxi] Engine: fall back to volatile message buffer in case of errors with SQLite
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi] Engine: fall back to volatile message buffer in case of errors with SQLite
- Date: Wed, 3 Sep 2014 17:35:37 +0000 (UTC)
commit 8c7eed19845f50e2be56365e272f624cdc57dc4b
Author: Mirco Bauer <meebey meebey net>
Date: Wed Sep 3 19:32:38 2014 +0200
Engine: fall back to volatile message buffer in case of errors with SQLite
src/Engine/Session.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Session.cs b/src/Engine/Session.cs
index fa353ab..1ec86b9 100644
--- a/src/Engine/Session.cs
+++ b/src/Engine/Session.cs
@@ -1298,7 +1298,8 @@ namespace Smuxi.Engine
"chat.MessageBuffer.Add() threw exception!", ex
);
#endif
- if (chat.MessageBuffer is Db4oMessageBuffer) {
+ if (chat.MessageBuffer is Db4oMessageBuffer ||
+ chat.MessageBuffer is SqliteMessageBuffer) {
#if LOG4NET
f_Logger.Error(
"AddMessageToChat(): " +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]