Пример #1
0
void SyncEngine::finalize()
{
    _thread.quit();
    _thread.wait();

#ifdef USE_NEON
    // De-init the neon HTTP(S) connections
    owncloud_commit(_csync_ctx);
#endif

    csync_commit(_csync_ctx);

    qDebug() << "CSync run took " << _stopWatch.addLapTime(QLatin1String("Sync Finished"));
    _stopWatch.stop();

    _syncRunning = false;
    emit finished();

    // Delete the propagator only after emitting the signal.
    _propagator.clear();
}
Пример #2
0
int csync_vio_commit(CSYNC *ctx) {
  (void) ctx;
  return owncloud_commit();
}