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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user