+ /* Start a rescan straight away if this is a new installation. This rescan
+ * blocks; the point is that when it is finished we are in a good position to
+ * choose a random track. */
+ if(!trackdb_existing_database) {
+ trackdb_rescan(0/*ev*/, 0/*check*/);
+ /* No ev -> the rescan will block. Since we called reconfigure() already
+ * any clients will also be forced to block. */
+ }
+ /* Start a second rescan, with length checking enabled, immediately after
+ * startup. */
+ rescan_after(1);