mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-12 23:43:23 -05:00
Fix inverted test on whether or not the db revision was stable
This commit is contained in:
parent
90a6a39ce1
commit
fe4742b026
@ -1392,7 +1392,8 @@ void dispatch_update(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||
}
|
||||
|
||||
/* wait for db_version to be stable for 30 seconds */
|
||||
while((clientver == db_revision()) && (db_revision() == lastver)) {
|
||||
while((clientver == db_revision()) ||
|
||||
(lastver && (db_revision() != lastver))) {
|
||||
lastver = db_revision();
|
||||
|
||||
FD_ZERO(&rset);
|
||||
|
Loading…
Reference in New Issue
Block a user