Changeset 3598

Show
Ignore:
Timestamp:
08/25/08 14:55:47 (3 months ago)
Author:
bellmich
Message:

If an error happens during a SyncML session
then the error can be signalled to OpenSync?
before the SyncML data sync session finished.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/syncml/src/syncml_callbacks.c

    r3587 r3598  
    7171                                        for (; o; o = o->next) { 
    7272                                                SmlDatabase *database = o->data; 
    73                                                 g_assert(database->commitCtx); 
    74                                                 report_success_on_context(&(database->commitCtx)); 
     73                                                /* If the connection finished after an error 
     74                                                 * then it can happen that the commitCtx was 
     75                                                 * already signaled. 
     76                                                 */ 
     77                                                if(database->commitCtx) 
     78                                                        report_success_on_context(&(database->commitCtx)); 
    7579                                        } 
    7680                                }