ovs.stream: Fix logic bug in Stream.connect().
authorBen Pfaff <blp@nicira.com>
Tue, 23 Aug 2011 18:09:46 +0000 (11:09 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 18:55:49 +0000 (11:55 -0700)
commit9601fa824d2c3968fda75204488e347d66d62d1f
tree723936c76c7b30c2907540bf944d0a5f08feeca8
parent92f8ebf943aab10ad5923516a3d2803a555eed44
ovs.stream: Fix logic bug in Stream.connect().

The loop here is supposed to run at least once, and to continue looping as
long as the loop body changes the current state, but this bug caused it to
continue looping until the connection completed in success or failure.  It
probably didn't cause many problems in practice because only Unix domain
socket connections are currently supported, and those connections normally
complete immediately.

Reported-by: Reid Price <reid@nicira.com>
python/ovs/stream.py