summaryrefslogtreecommitdiffstats
path: root/src/input_common/udp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-02-03 15:24:03 +0100
committerLioncash <mathew1800@gmail.com>2020-02-03 15:24:05 +0100
commit5c61e0ba3938c9b939416ec996ee339bf1417ebf (patch)
tree0fa2eb2fa1f0b628f7dacbd356408f724e51c397 /src/input_common/udp
parentinput_common/udp: std::move shared_ptr within Client constructor (diff)
downloadyuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar.gz
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar.bz2
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar.lz
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar.xz
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.tar.zst
yuzu-5c61e0ba3938c9b939416ec996ee339bf1417ebf.zip
Diffstat (limited to 'src/input_common/udp')
-rw-r--r--src/input_common/udp/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp
index 1fa246e79..2228571a6 100644
--- a/src/input_common/udp/client.cpp
+++ b/src/input_common/udp/client.cpp
@@ -206,7 +206,7 @@ void TestCommunication(const std::string& host, u16 port, u8 pad_index, u32 clie
Common::Event success_event;
SocketCallback callback{[](Response::Version version) {}, [](Response::PortInfo info) {},
[&](Response::PadData data) { success_event.Set(); }};
- Socket socket{host, port, pad_index, client_id, callback};
+ Socket socket{host, port, pad_index, client_id, std::move(callback)};
std::thread worker_thread{SocketLoop, &socket};
bool result = success_event.WaitFor(std::chrono::seconds(8));
socket.Stop();
@@ -266,7 +266,7 @@ CalibrationConfigurationJob::CalibrationConfigurationJob(
complete_event.Set();
}
}};
- Socket socket{host, port, pad_index, client_id, callback};
+ Socket socket{host, port, pad_index, client_id, std::move(callback)};
std::thread worker_thread{SocketLoop, &socket};
complete_event.Wait();
socket.Stop();