X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/fc9c24e3ebb095d05e2d140526289c622d6e5504..1a4a6350a9033f0c2d1e2b7e6c1a029bdaa46da6:/server/disorderd.c?ds=sidebyside diff --git a/server/disorderd.c b/server/disorderd.c index e8e1046..758907c 100644 --- a/server/disorderd.c +++ b/server/disorderd.c @@ -289,8 +289,11 @@ int main(int argc, char **argv) { /* ignore SIGPIPE */ signal(SIGPIPE, SIG_IGN); /* start a rescan straight away */ - if(initial_rescan) - trackdb_rescan(ev); + if(initial_rescan) { + trackdb_rescan(0/*ev*/); + /* No ev -> the rescan will block. Since we called reconfigure() already + * any clients will also be forced to block. */ + } rescan_after(86400); /* periodically tidy up the database */ dbgc_after(60);