]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
call from thread
authorburris <burris>
Fri, 13 Sep 2002 21:25:59 +0000 (21:25 +0000)
committerburris <burris>
Fri, 13 Sep 2002 21:25:59 +0000 (21:25 +0000)
khashmir.py

index ece28516d04139fad277c537860b0786a68fbe27..509725bdfcd8ffe3563e3e2efd50359201d9f5a2 100644 (file)
@@ -99,8 +99,7 @@ class Khashmir(xmlrpc.XMLRPC):
        # get locals
        l = self.retrieveValues(key)
        if len(l) > 0:
-           callback(l)
-
+           reactor.callFromThread(callback, l)
 
 
     ## async, but in the current implementation there is no guarantee a store does anything so there is no callback right now