changeset 1314:6bbe043fe837

active: removed unnecessary schedule_callback
author Martin Geisler <mg@cs.au.dk>
date Thu, 22 Oct 2009 12:52:09 +0200
parents 81be1830f33e
children a0c405e7b2f8
files viff/active.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/active.py	Wed Oct 21 11:03:58 2009 +0200
+++ b/viff/active.py	Thu Oct 22 12:52:09 2009 +0200
@@ -256,7 +256,7 @@
                     else:
                         si.append(self._expect_share(peer_id, field))
                 result = gatherResults(si)
-                self.schedule_callback(result, verify)
+                result.addCallback(verify)
                 return result
             else:
                 # We cannot verify anything, so we just return the
@@ -358,7 +358,7 @@
                         si_1.append(self._expect_share(peer_id, field))
                         si_2.append(self._expect_share(peer_id, field))
                 result = gatherResults([gatherResults(si_1), gatherResults(si_2)])
-                self.schedule_callback(result, verify)
+                result.addCallback(verify)
                 return result
             else:
                 # We cannot verify anything, so we just return the