Fix: websocket trigger not leading to sync with --download-only (#3631)

Co-authored-by: aster <aster@nuc>
This commit is contained in:
theh0lyc0w 2026-02-04 23:07:45 +01:00 committed by GitHub
commit 571719d550
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1379,7 +1379,7 @@ int main(string[] cliArgs) {
auto sleepTime = nextCheckTime - currentTime;
if (debugLogging) {addLogEntry("Sleep for " ~ to!string(sleepTime), ["debug"]);}
if (filesystemMonitor.initialised || webhookEnabled) {
if (filesystemMonitor.initialised || webhookEnabled || oneDriveSocketIo !is null) {
if (filesystemMonitor.initialised) {
// If local monitor is on and is waiting (previous event was not from webhook)