mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 04:06:23 +01:00
fix minor connection leak
This commit is contained in:
@@ -29,6 +29,11 @@ Protocol::Protocol()
|
||||
m_checksumEnabled = false;
|
||||
}
|
||||
|
||||
Protocol::~Protocol()
|
||||
{
|
||||
disconnect();
|
||||
}
|
||||
|
||||
void Protocol::connect(const std::string& host, uint16 port)
|
||||
{
|
||||
m_connection = ConnectionPtr(new Connection);
|
||||
|
||||
Reference in New Issue
Block a user