Core hotlist: Ensure any hotlist save callback is removed on hotlist_fini.

This commit is contained in:
Michael Drake 2017-04-25 15:14:56 +01:00
parent 479c3fd0b5
commit 31d98a1d2e

View File

@ -1368,6 +1368,10 @@ nserror hotlist_fini(void)
LOG("Finalising hotlist");
/* Remove any existing scheduled save callback */
guit->misc->schedule(-1, hotlist_schedule_save_cb, NULL);
hl_ctx.save_scheduled = false;
/* Save the hotlist */
err = hotlist_save(hl_ctx.save_path);
if (err != NSERROR_OK) {