Merge pull request #7690

3cc4428 clang: fix -Wpessimizing-move warning (selsta)
This commit is contained in:
luigi1111 2021-05-12 16:58:34 -05:00
commit 342f8c8b97
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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();