Fix use of SyncthingService without check for nullptr
This commit is contained in:
parent
49b33e5afe
commit
43cd6fc2cc
|
@ -132,7 +132,7 @@ bool SyncthingNotifier::isDisconnectRelevant() const
|
|||
return false;
|
||||
}
|
||||
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
|
||||
if (m_service->isRunning() && !m_service->isActiveWithoutSleepFor(m_ignoreInavailabilityAfterStart)) {
|
||||
if (m_service && m_service->isRunning() && !m_service->isActiveWithoutSleepFor(m_ignoreInavailabilityAfterStart)) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue