summaryrefslogtreecommitdiffstats
path: root/gtk/src/queuehandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-07-12 15:22:06 -0700
committerJohn Stebbins <[email protected]>2018-07-12 15:25:00 -0700
commit9b44cc7808d3d1e185a0ed517ac7d485e92cca93 (patch)
tree9d36863472519b993f163c292e0223d142005d07 /gtk/src/queuehandler.c
parentbee4ee46f670297aa33acc75ff5fa2332a39a792 (diff)
LinGui: fix queue reload in flatpak sandbox
Queues are tied to the PID of the process that wrote them. But the app runs with the same PID in the sandbox on every invocation. So the new pid file must be written after processing any previous queue.
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r--gtk/src/queuehandler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 63598f9ca..6cf0779f9 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -2474,7 +2474,7 @@ ghb_reload_queue(signal_user_data_t *ud)
find_pid:
pid = ghb_find_pid_file();
if (pid < 0)
- return FALSE;
+ goto done;
queue = ghb_load_old_queue(pid);
ghb_remove_old_queue_file(pid);
@@ -2521,6 +2521,10 @@ find_pid:
ghb_save_queue(ud->queue);
ghb_update_pending(ud);
}
+
+done:
+ ghb_write_pid_file();
+
return FALSE;
}