2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00

python: Call 'wait' methods correctly in jsonrpc and stream code.

Bug #12301.
Reported-by: Mike Kruze <mkruze@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2012-07-02 10:34:32 -07:00
parent bce821a555
commit 5796d9cf85
2 changed files with 2 additions and 2 deletions

View File

@@ -210,7 +210,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

View File

@@ -113,7 +113,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