diff --git a/network.go b/network.go index 211b860..d4f46e7 100644 --- a/network.go +++ b/network.go @@ -24,7 +24,9 @@ func networkStateChanged() { timeSync.SetDhcpNtpAddresses(networkState.NtpAddressesString()) } - timeSync.Sync() + if err := timeSync.Sync(); err != nil { + networkLogger.Error().Err(err).Msg("failed to sync time after network state change") + } } // always restart mDNS when the network state changes