From 3d39a51cdcea2dc2424d5e75e22900a9e760e010 Mon Sep 17 00:00:00 2001 From: abitmore Date: Thu, 9 May 2019 13:57:03 -0400 Subject: [PATCH] Capture only `this` in cli::start() --- src/rpc/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index c6095d6..ba7f6e5 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -289,7 +289,7 @@ void cli::start() cli_commands() = get_method_names(0); #endif - _run_complete = fc::async( [&](){ run(); } ); + _run_complete = fc::async( [this](){ run(); } ); } /***