Author: dmeyer
Date: Mon Oct 29 09:28:35 2007
New Revision: 2889

Log:
fix crash when called in thread

Modified:
   trunk/base/src/rpc.py

Modified: trunk/base/src/rpc.py
==============================================================================
--- trunk/base/src/rpc.py       (original)
+++ trunk/base/src/rpc.py       Mon Oct 29 09:28:35 2007
@@ -235,11 +235,11 @@
             raise IOError('channel is disconnected')
         seq = self._next_seq
         self._next_seq += 1
+        # create InProgress object
+        callback = kwargs.pop('_kaa_rpc_callback', kaa.notifier.InProgress())
         packet_type = 'CALL'
         payload = cPickle.dumps((cmd, args, kwargs), pickle.HIGHEST_PROTOCOL)
         self._send_packet(seq, packet_type, payload)
-        # create InProgress object and return
-        callback = kwargs.pop('_kaa_rpc_callback', kaa.notifier.InProgress())
         # callback with error handler
         self._rpc_in_progress[seq] = callback
         return callback

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to