diff --git a/evpp/TcpClient.h b/evpp/TcpClient.h index bcdea6485..85ac649f7 100644 --- a/evpp/TcpClient.h +++ b/evpp/TcpClient.h @@ -217,7 +217,7 @@ class TcpClientEventLoopTmpl { } *reconn_setting = *setting; } - bool isReconnect() { + bool isReconnect() const { return reconn_setting && reconn_setting->cur_retry_cnt > 0; }