aboutsummaryrefslogtreecommitdiff
path: root/pgbak.c
diff options
context:
space:
mode:
Diffstat (limited to 'pgbak.c')
-rw-r--r--pgbak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgbak.c b/pgbak.c
index 876fff9..3fed5eb 100644
--- a/pgbak.c
+++ b/pgbak.c
@@ -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;