From: <svn...@op...> - 2009-09-14 17:45:21
|
Author: bellmich Date: Mon Sep 14 19:45:08 2009 New Revision: 1270 URL: http://libsyncml.opensync.org/changeset/1270 Log: handles the case that a data store session is initiated by a SAN Modified: trunk/libsyncml/data_sync_api/data_sync_client.c Modified: trunk/libsyncml/data_sync_api/data_sync_client.c ============================================================================== --- trunk/libsyncml/data_sync_api/data_sync_client.c Mon Sep 14 15:11:05 2009 (r1269) +++ trunk/libsyncml/data_sync_api/data_sync_client.c Mon Sep 14 19:45:08 2009 (r1270) @@ -47,6 +47,11 @@ gboolean ret = TRUE; GError *error = NULL; + /* If this is an OBEX server then the dsession is not known until now. */ + + if (!self->priv->data_store_session) + self->priv->data_store_session = dsession; + /* libsyncml only supports SML_ALERT_TWO_WAY and SML_ALERT_SLOW_SYNC * but some old phones reply on a SAN alert 206 with a slow sync 201 * alert or a SAN alert 206 (insteed of a normal two way alert 200). |