[smuxi] Engine: handle exceptions of SQLite message buffer during sync (refs: #1062)



commit a84de167cd060b1412792964922caddb0fcaf712
Author: Mirco Bauer <meebey meebey net>
Date:   Thu May 28 22:31:36 2015 +0200

    Engine: handle exceptions of SQLite message buffer during sync (refs: #1062)
    
    Non-volatile backends have higher chances of race conditions and other serious
    bugs that can lead to crashes because their complexity is much higher. For that
    reason Smuxi handled exceptions of Db4o and should also do for all other
    non-volatile ones like SQLite.

 src/Engine/Chats/ChatModel.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Chats/ChatModel.cs b/src/Engine/Chats/ChatModel.cs
index b289a71..b28d775 100644
--- a/src/Engine/Chats/ChatModel.cs
+++ b/src/Engine/Chats/ChatModel.cs
@@ -87,7 +87,7 @@ namespace Smuxi.Engine
                         ), ex
                     );
 #endif
-                    if (MessageBuffer is Db4oMessageBuffer) {
+                    if (!(MessageBuffer is ListMessageBuffer)) {
 #if LOG4NET
                         _Logger.Error(
                             String.Format(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]