fix: fixed macOS build

This commit is contained in:
Qv2ray-dev 2020-07-07 18:08:50 +08:00
parent 1e3f56617a
commit 2eefe1545d
No known key found for this signature in database
GPG Key ID: E7FAEFAFCD031D4B
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
5721 5723

View File

@ -34,7 +34,9 @@ namespace Qv2ray::components::latency
for (auto i = 0; i < count; i++) for (auto i = 0; i < count; i++)
{ {
resultData.totalCount++; resultData.totalCount++;
const auto [_latency, errMessage] = pingHelper.ping(host); const auto value = pingHelper.ping(host);
const auto _latency = value.first;
const auto errMessage = value.second;
if (!errMessage.isEmpty()) if (!errMessage.isEmpty())
{ {
resultData.errorMessage.append(NEWLINE + errMessage); resultData.errorMessage.append(NEWLINE + errMessage);