face: use move semantics for sockets where possible
Change-Id: I2af595073f862c570c1ce0dcb3717f3d2b9cfd71
Refs: #2613
diff --git a/daemon/face/unix-stream-channel.hpp b/daemon/face/unix-stream-channel.hpp
index c90dcb0..06be812 100644
--- a/daemon/face/unix-stream-channel.hpp
+++ b/daemon/face/unix-stream-channel.hpp
@@ -85,13 +85,13 @@
void
handleAccept(const boost::system::error_code& error,
- const shared_ptr<boost::asio::local::stream_protocol::socket>& socket,
const FaceCreatedCallback& onFaceCreated,
const ConnectFailedCallback& onAcceptFailed);
private:
- boost::asio::local::stream_protocol::acceptor m_acceptor;
unix_stream::Endpoint m_endpoint;
+ boost::asio::local::stream_protocol::acceptor m_acceptor;
+ boost::asio::local::stream_protocol::socket m_socket;
};
inline bool