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:
Przemyslaw Kaminski 2015-04-20 17:34:47 +02:00
parent 3d214954af
commit dbd34f320b

View File

@ -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