mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Socket: Fix typo in constructor
Using moved objects is generally a bad idea Thanks @Daejiv Closes #12800
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user