File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,8 @@ Changelog
374
374
- Deprecated Port.get_connection_by_dest()
375
375
- Added Port.get_connections_by_dest()
376
376
- Added Port.get_connections_by_dests()
377
+ - Fixed a bug where finding a connection with a given destination would return
378
+ all connections on the port.
377
379
378
380
3.0.1
379
381
-----
Original file line number Diff line number Diff line change @@ -153,10 +153,13 @@ def get_connections_by_dests(self, dests):
153
153
for c in self .connections :
154
154
if not c .has_port (self ):
155
155
continue
156
+ has_dest = False
156
157
for d in dests :
157
- if not c .has_port (d ):
158
- continue
159
- res .append (c )
158
+ if c .has_port (d ):
159
+ has_dest = True
160
+ break
161
+ if has_dest :
162
+ res .append (c )
160
163
return res
161
164
162
165
def get_connection_by_id (self , id ):
You can’t perform that action at this time.
0 commit comments