diff options
-rw-r--r-- | pgbak.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -391,9 +391,9 @@ static void bak_work(int state) { state = STATE_SNAPSHOT; } lck_write(state); - lck_release(LOCK_STATE); - + if(state == STATE_IDLE) break; + lck_release(LOCK_STATE); if(state == STATE_SNAPSHOT || refresh_ts) { refresh_ts = false; |