summaryrefslogtreecommitdiff
path: root/src/backends/webdav/CalDAVSource.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2012-06-20 12:26:12 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2012-06-20 12:26:43 +0200
commit3716ae2c9addde8fbd111cb3c12e842608e6b1ee (patch)
tree432b7fb886e8d4dc952d36e3c5d468acc5cc391e /src/backends/webdav/CalDAVSource.cpp
parent7ce9b7ff258565a2ecab8e344d86ef9497ba57ce (diff)
core, WebDAV: improved support for aborting while sleeping
When waiting for resending a failed message, the sleeping couldn't be interrupted when using the D-Bus server. It now uses the SuspendFlags infrastructure and glib, which detects abort requests sent via D-Bus in addition to those sent via signals (which already worked earlier).
Diffstat (limited to 'src/backends/webdav/CalDAVSource.cpp')
-rw-r--r--src/backends/webdav/CalDAVSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/webdav/CalDAVSource.cpp b/src/backends/webdav/CalDAVSource.cpp
index 97f3c434..decd1704 100644
--- a/src/backends/webdav/CalDAVSource.cpp
+++ b/src/backends/webdav/CalDAVSource.cpp
@@ -963,7 +963,7 @@ std::string CalDAVSource::removeSubItem(const string &davLUID, const std::string
if (ex2.syncMLStatus() == 409 &&
strstr(ex2.what(), "Can't delete a recurring event")) {
SE_LOG_DEBUG(this, NULL, "Google recurring event delete hack: try again in a second");
- sleep(1);
+ Sleep(1);
} else {
throw;
}