[tomboy] Use ResetClient



commit 37d77d1b10d533d7652551b71da723b425955b40
Author: Guido Günther <agx sigxcpu org>
Date:   Tue Nov 12 18:05:58 2013 +0100

    Use ResetClient
    
    since it provides more debug infos and printout the server's id
    if it doesn't match with the expected one.
    
    Signed-off-by: Jared Jennings <jared jaredjennings org>

 Tomboy/Synchronization/SyncManager.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Synchronization/SyncManager.cs b/Tomboy/Synchronization/SyncManager.cs
index b90f6b5..663b536 100644
--- a/Tomboy/Synchronization/SyncManager.cs
+++ b/Tomboy/Synchronization/SyncManager.cs
@@ -430,7 +430,8 @@ namespace Tomboy.Sync
                                // to prevent this situation.
                                string serverId = server.Id;
                                if (client.AssociatedServerId != serverId) {
-                                       client.Reset ();
+                                       Logger.Debug("ServerID is {0}, expected {1}", serverId, 
client.AssociatedServerId);
+                                       ResetClient ();
                                        client.AssociatedServerId = serverId;
                                }
 


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