python: Change || to && for MessageBuffers in connectPorts.
The connectPorts function currently checks if *either* of the peers in
a port connection are a MessageBuffer, and if so will ignore the
connection. This CL changes that || into a && so that *both* of the
peers need to be a Ruby types (either a MessageBuffer or Network) for
the connection to be ignored. That makes it easier to contain that
abnormal behavior to those types instead of having it apply even when
other types of port owners are involved.
Unfortunately the number of interesting Ruby types is unbounded, but
these are the types with ports as of today. This mechanism will
hopefully be replacedall together so this should be a temporary issue.
Reviewed-by: Nikos Nikoleris <firstname.lastname@example.org>
Reviewed-by: Jason Lowe-Power <email@example.com>
Reviewed-by: Andreas Sandberg <firstname.lastname@example.org>
Maintainer: Jason Lowe-Power <email@example.com>
1 file changed