Commit de2b6575 authored by Aurel's avatar Aurel

reset signature status only if we need to check for modifications

parent 589eb85b
......@@ -187,6 +187,9 @@ class EngineMixin(object):
if subscription.getAuthenticationState() != 'logged_in':
# Workflow action
subscription.login()
if subscription.getSyncmlAlertCode() not in ("one_way_from_server",
"refresh_from_server_only"):
# Reset signature only if client send its modification to server
subscription.initialiseSynchronization()
# Create the package 1
......@@ -435,6 +438,9 @@ class EngineMixin(object):
next_anchor=subscriber.getNextAnchor())
# Now that everything is ok, init sync information
if subscriber.getSyncmlAlertCode() not in ("one_way_from_client",
"refresh_from_client_only"):
# Reset signature only if we have to check modifications on server side
subscriber.initialiseSynchronization()
# Server get sync commands from client first
subscriber.processSyncRequest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment