@@ -82,7 +82,7 @@ void Expander::ping() {
8282 const double last_message_age = this ->get_property (" last_message_age" )->integer_value / 1000.0 ;
8383 const double ping_interval = this ->get_property (" ping_interval" )->number_value ;
8484 const double ping_timeout = this ->get_property (" ping_timeout" )->number_value ;
85- if (!this ->ping_pending && ! this -> has_proxies_configured ) {
85+ if (!this ->ping_pending ) {
8686 if (last_message_age >= ping_interval) {
8787 this ->serial ->write_checked_line (" core.print('__PONG__')" );
8888 this ->ping_pending = true ;
@@ -221,7 +221,6 @@ void Expander::send_proxy(const std::string module_name, const std::string modul
221221 pos += csprintf (&buffer[pos], sizeof (buffer) - pos, " ); " );
222222 pos += csprintf (&buffer[pos], sizeof (buffer) - pos, " %s.broadcast()" , module_name.c_str ());
223223 this ->serial ->write_checked_line (buffer, pos);
224- this ->has_proxies_configured = true ;
225224}
226225
227226void Expander::send_property (const std::string proxy_name, const std::string property_name, const ConstExpression_ptr expression) {
@@ -231,9 +230,9 @@ void Expander::send_property(const std::string proxy_name, const std::string pro
231230 this ->serial ->write_checked_line (buffer, pos);
232231}
233232
234- void Expander::send_call (const std::string method_name, const std::vector<ConstExpression_ptr> arguments) {
233+ void Expander::send_call (const std::string proxy_name, const std::string method_name, const std::vector<ConstExpression_ptr> arguments) {
235234 static char buffer[256 ];
236- int pos = csprintf (buffer, sizeof (buffer), " %s.%s(" , this -> name .c_str (), method_name.c_str ());
235+ int pos = csprintf (buffer, sizeof (buffer), " %s.%s(" , proxy_name .c_str (), method_name.c_str ());
237236 pos += write_arguments_to_buffer (arguments, &buffer[pos], sizeof (buffer) - pos);
238237 pos += csprintf (&buffer[pos], sizeof (buffer) - pos, " )" );
239238 this ->serial ->write_checked_line (buffer, pos);
0 commit comments