|
|
@ -133,8 +133,6 @@ namespace Stratum |
|
|
|
|
|
|
|
|
|
|
|
void _OnAccept(ClientPtr client, const boost::system::error_code& error) |
|
|
|
void _OnAccept(ClientPtr client, const boost::system::error_code& error) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_StartAccept(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!error) { |
|
|
|
if (!error) { |
|
|
|
if (client->Start()) { |
|
|
|
if (client->Start()) { |
|
|
|
_clients.insert(client); |
|
|
|
_clients.insert(client); |
|
|
@ -143,6 +141,8 @@ namespace Stratum |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
sLog.Debug(LOG_STRATUM, "Failed to accept stratum client"); |
|
|
|
sLog.Debug(LOG_STRATUM, "Failed to accept stratum client"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_StartAccept(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|