python: Call 'wait' methods correctly in jsonrpc and stream code.
authorBen Pfaff <blp@nicira.com>
Mon, 2 Jul 2012 17:34:32 +0000 (10:34 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 2 Jul 2012 22:24:05 +0000 (15:24 -0700)
Bug #12301.
Reported-by: Mike Kruze <mkruze@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
python/ovs/jsonrpc.py
python/ovs/stream.py

index 25b0229..ed2b4c5 100644 (file)
@@ -209,7 +209,7 @@ class Connection(object):
         if not self.status:
             self.stream.run_wait(poller)
             if len(self.output):
-                self.stream.send_wait()
+                self.stream.send_wait(poller)
 
     def get_status(self):
         return self.status
index 7ea9e46..5c065e4 100644 (file)
@@ -105,7 +105,7 @@ class Stream(object):
                     break
                 stream.run()
                 poller = ovs.poller.Poller()
-                stream.run_wait()
+                stream.run_wait(poller)
                 stream.connect_wait(poller)
                 poller.block()
             assert error != errno.EINPROGRESS