Format code in `InternalError::isRelevant()` according to current coding style
This commit is contained in:
parent
4fb50526bd
commit
1c9e9affe3
|
@ -39,11 +39,12 @@ bool InternalError::isRelevant(const SyncthingConnection &connection, SyncthingE
|
||||||
const auto remoteHostClosed = networkError == QNetworkReply::ConnectionRefusedError || networkError == QNetworkReply::RemoteHostClosedError
|
const auto remoteHostClosed = networkError == QNetworkReply::ConnectionRefusedError || networkError == QNetworkReply::RemoteHostClosedError
|
||||||
|| networkError == QNetworkReply::ProxyConnectionClosedError;
|
|| 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)
|
// 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()) {
|
if (settings.launcher.considerForReconnect && remoteHostClosed && launcher && launcher->isManuallyStopped()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
|
#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()) {
|
if (settings.systemd.considerForReconnect && remoteHostClosed && service && service->isManuallyStopped()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue