[Pkg-owncloud-commits] [owncloud-client] 100/115: Discovery phase: clear the callbacks after use

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Aug 29 22:04:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 1cf956ec214f87fe6799a03e5692b7641156b357
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Aug 21 11:26:34 2014 +0200

    Discovery phase: clear the callbacks after use
---
 src/mirall/discoveryphase.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/mirall/discoveryphase.cpp b/src/mirall/discoveryphase.cpp
index 3963ccf..f81dc0a 100644
--- a/src/mirall/discoveryphase.cpp
+++ b/src/mirall/discoveryphase.cpp
@@ -83,7 +83,15 @@ void DiscoveryJob::start() {
     csync_set_log_level(_log_level);
     csync_set_log_userdata(_log_userdata);
     lastUpdateProgressCallbackCall.invalidate();
-    emit finished(csync_update(_csync_ctx));
+    int ret = csync_update(_csync_ctx);
+
+    _csync_ctx->checkBlackListHook = 0;
+    _csync_ctx->checkBlackListData = 0;
+
+    _csync_ctx->callbacks.update_callback = 0;
+    _csync_ctx->callbacks.update_callback_userdata = 0;
+
+    emit finished(ret);
     deleteLater();
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list