Core/Socket: Fix typo in constructor

Using moved objects is generally a bad idea

Thanks @Daejiv

Closes #12800
This commit is contained in:
Duarte Duarte
2014-08-07 14:25:43 +01:00
parent fad2bd4f92
commit ca368a781b

View File

@@ -39,8 +39,8 @@ class Socket : public std::enable_shared_from_this<T>
public:
Socket(tcp::socket&& socket, std::size_t headerSize) : _socket(std::move(socket)), _headerSize(headerSize)
{
_remotePort = socket.remote_endpoint().port();
_remoteAddress = socket.remote_endpoint().address();
_remotePort = _socket.remote_endpoint().port();
_remoteAddress = _socket.remote_endpoint().address();
}
virtual void Start() = 0;