Do not run ping on clients that are not yet connected
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ void osd_messenger_t::init()
|
|||||||
for (auto cl_it = clients.begin(); cl_it != clients.end();)
|
for (auto cl_it = clients.begin(); cl_it != clients.end();)
|
||||||
{
|
{
|
||||||
auto cl = (cl_it++)->second;
|
auto cl = (cl_it++)->second;
|
||||||
if (!cl->osd_num)
|
if (!cl->osd_num || cl->peer_state != PEER_CONNECTED)
|
||||||
{
|
{
|
||||||
// Do not run keepalive on regular clients
|
// Do not run keepalive on regular clients
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user