clang: fix -Wpessimizing-move warning

pull/377/head
selsta 3 years ago
parent 0a1ddc2eff
commit 3cc4428d45
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -320,7 +320,8 @@ TEST(test_epee_connection, test_lifetime)
connection_ptr conn;
{
lock_guard_t guard(shared_conn->lock);
conn = std::move(shared_conn->conn.lock());
conn = shared_conn->conn.lock();
shared_conn->conn.reset();
}
if (conn)
conn->cancel();

Loading…
Cancel
Save