[conduit/syncml: 30/244] Fixy



commit 7dd5876ff11e069b5c80be26dd040aefc8757155
Author: John Carr <john carr unrouted co uk>
Date:   Wed Apr 15 14:32:05 2009 -0700

    Fixy
---
 conduit/modules/SyncmlModule/SyncmlModule.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/conduit/modules/SyncmlModule/SyncmlModule.py b/conduit/modules/SyncmlModule/SyncmlModule.py
index bd629b6..34472bd 100644
--- a/conduit/modules/SyncmlModule/SyncmlModule.py
+++ b/conduit/modules/SyncmlModule/SyncmlModule.py
@@ -72,8 +72,9 @@ class SyncmlDataProvider(DataProvider.TwoWay):
 
         if event == enums.SML_DATA_SYNC_EVENT_GOT_ALL_ALERTS:
             log.info("Got all alerts")
-            self._syncml_sendall()
-            return
+            if self._session_type == enums.SML_SESSION_TYPE_CLIENT:
+                self._syncml_sendall()
+                return
 
         if event == enums.SML_DATA_SYNC_EVENT_GOT_ALL_CHANGES:
             log.info("Got All Changes")
@@ -202,7 +203,6 @@ class SyncmlDataProvider(DataProvider.TwoWay):
         self._queue = None
         self.syncobj.unref(pysyncml.byref(self.syncobj))
 
-
         if self._session_type == enums.SML_SESSION_TYPE_CLIENT:
             self._syncml_run()
             self._refresh_lock.wait(60)



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