Connect -- provided mapping overrides guessed
This way we can have multiple connections to one resource and only one of them can safely provide the ip, without others overriding it.
This commit is contained in:
parent
3d214954af
commit
dbd34f320b
@ -39,9 +39,10 @@ def guess_mapping(emitter, receiver):
|
||||
|
||||
|
||||
def connect(emitter, receiver, mapping=None):
|
||||
mapping = mapping or {}
|
||||
#mapping = mapping or {}
|
||||
guessed = guess_mapping(emitter, receiver)
|
||||
guessed.update(mapping)
|
||||
#guessed.update(mapping)
|
||||
mapping = mapping or guessed
|
||||
|
||||
for src, dst in guessed.items():
|
||||
# Disconnect all receiver inputs
|
||||
|
Loading…
Reference in New Issue
Block a user