Reported by Coverity as CID 414105. We don't really care about the
performance impact but other tools are "helpfully" reporting this
kind of missed optimizations, so let's not waste our time.
auto sock = std::make_shared<Socket>(local.sin4.sin_family, SOCK_STREAM, 0);
sock->bind(local, true);
sock->listen(5);
- auto launch = [sock, local]() {
+ auto launch = [sock = std::move(sock), local]() {
std::thread consoleControlThread(controlThread, sock, local);
consoleControlThread.detach();
};