X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=python%2Fovs%2Fjsonrpc.py;h=1c3f099c5e1620b6bdf9f0ab9578b1bf90470830;hb=66eb76d0fcdff78707a1bee4040e2411730d1a5a;hp=25b0229183c19adae430fae364362c0541b45bce;hpb=3a656eafb96ab8a474e943baabdb2679d0a6b0ef;p=sliver-openvswitch.git diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py index 25b022918..1c3f099c5 100644 --- a/python/ovs/jsonrpc.py +++ b/python/ovs/jsonrpc.py @@ -301,7 +301,10 @@ class Connection(object): reply = None while not error: error, reply = self.recv_block() - if reply and reply.type == Message.T_REPLY and reply.id == id_: + if (reply + and (reply.type == Message.T_REPLY + or reply.type == Message.T_ERROR) + and reply.id == id_): break return error, reply