Format code in `InternalError::isRelevant()` according to current coding style

This commit is contained in:
Martchus 2023-04-04 17:14:16 +02:00
parent 4fb50526bd
commit 1c9e9affe3
1 changed files with 2 additions and 1 deletions

View File

@ -39,11 +39,12 @@ bool InternalError::isRelevant(const SyncthingConnection &connection, SyncthingE
const auto remoteHostClosed = networkError == QNetworkReply::ConnectionRefusedError || networkError == QNetworkReply::RemoteHostClosedError
|| networkError == QNetworkReply::ProxyConnectionClosedError;
// ignore "remote host closed" error if we've just stopped Syncthing ourselves (or "connection refused" which can also be the result of stopping Syncthing ourselves)
const auto *launcher = SyncthingLauncher::mainInstance();
if (settings.launcher.considerForReconnect && remoteHostClosed && launcher && launcher->isManuallyStopped()) {
return false;
}
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
const auto *const service(SyncthingService::mainInstance());
const auto *const service = SyncthingService::mainInstance();
if (settings.systemd.considerForReconnect && remoteHostClosed && service && service->isManuallyStopped()) {
return false;
}