mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-17 13:15:03 +02:00
Revert "Fix unhandled monitor initialisation exception"
This reverts commit e1be2b1e55
.
This commit is contained in:
parent
e1be2b1e55
commit
9b3179540f
14
src/main.d
14
src/main.d
|
@ -671,17 +671,8 @@ int main(string[] args)
|
||||||
signal(SIGINT, &exitHandler);
|
signal(SIGINT, &exitHandler);
|
||||||
signal(SIGTERM, &exitHandler);
|
signal(SIGTERM, &exitHandler);
|
||||||
|
|
||||||
// attempt to initialise monitor class
|
// initialise the monitor class
|
||||||
try {
|
if (!cfg.getValueBool("download_only")) m.init(cfg, cfg.getValueLong("verbose") > 0, cfg.getValueBool("skip_symlinks"), cfg.getValueBool("check_nosync"));
|
||||||
m.init(cfg, cfg.getValueLong("verbose") > 0, cfg.getValueBool("skip_symlinks"), cfg.getValueBool("check_nosync"));
|
|
||||||
} catch (MonitorException e) {
|
|
||||||
// monitor initialisation failed
|
|
||||||
log.error("ERROR: ", e.msg);
|
|
||||||
exit(-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
//if (!cfg.getValueBool("download_only")) m.init(cfg, cfg.getValueLong("verbose") > 0, cfg.getValueBool("skip_symlinks"), cfg.getValueBool("check_nosync"));
|
|
||||||
if (!cfg.getValueBool("download_only")) {
|
|
||||||
// monitor loop
|
// monitor loop
|
||||||
immutable auto checkInterval = dur!"seconds"(cfg.getValueLong("monitor_interval"));
|
immutable auto checkInterval = dur!"seconds"(cfg.getValueLong("monitor_interval"));
|
||||||
immutable auto logInterval = cfg.getValueLong("monitor_log_frequency");
|
immutable auto logInterval = cfg.getValueLong("monitor_log_frequency");
|
||||||
|
@ -749,7 +740,6 @@ int main(string[] args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Workaround for segfault in std.net.curl.Curl.shutdown() on exit
|
// Workaround for segfault in std.net.curl.Curl.shutdown() on exit
|
||||||
oneDrive.http.shutdown();
|
oneDrive.http.shutdown();
|
||||||
|
|
Loading…
Reference in a new issue