Skip to content

Commit

Permalink
fix bug related to interface merge
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoufkirsh committed Apr 18, 2012
1 parent 08078e4 commit 976e747
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/Dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ def check_all_pin # Check that every wire has to 2 pins
end

def call(pin_sender_name_, iface_, method_, *args_)
return @binding[pin_sender_name_][0].method_exec(iface_, method_, *args_)
@binding[pin_sender_name_].each { |pin|
if pin.interfaces.include?(pin.get_iface(iface_))
return pin.method_exec(iface_, method_, *args_)
end
}
nil
end

def get_plug(dbus_name_) #return an array of plugged pin
Expand Down

0 comments on commit 976e747

Please sign in to comment.