diff --git a/include/fc/rpc/api_connection.hpp b/include/fc/rpc/api_connection.hpp index c037c22..5316285 100644 --- a/include/fc/rpc/api_connection.hpp +++ b/include/fc/rpc/api_connection.hpp @@ -113,7 +113,7 @@ namespace fc { R call_generic( const std::function,Args...)>& f, variants::const_iterator a0, variants::const_iterator e ) { FC_ASSERT( a0 != e, "too few arguments passed to method" ); - detail::callback_functor arg0( *this, a0->as() ); + detail::callback_functor arg0( get_connection(), a0->as() ); return call_generic( this->bind_first_arg,Args...>( f, std::function(arg0) ), a0+1, e ); } template