X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..71634563a24f62eedab5fd97fed3c029061acf43:/lib/client.c diff --git a/lib/client.c b/lib/client.c index 75381c6..4dfd10c 100644 --- a/lib/client.c +++ b/lib/client.c @@ -389,9 +389,8 @@ int disorder_connect(disorder_client *c) { return -1; } password = config->password; - if(!password) { - /* Maybe we can read the database */ - /* TODO failure to open the database should not be fatal */ + /* Maybe we can read the database */ + if(!password && trackdb_readable()) { trackdb_init(TRACKDB_NO_RECOVER|TRACKDB_NO_UPGRADE); trackdb_open(TRACKDB_READ_ONLY); password = trackdb_get_password(username);