Fix race condition with music not being done playing

This commit is contained in:
2018-05-11 07:42:05 -04:00
parent 8189264908
commit d2b83659ea
2 changed files with 3 additions and 3 deletions

View File

@@ -198,6 +198,7 @@ void update_qr(qr_data *data)
if (!quirc_decode(&code, &scan_data))
{
exit_qr(data);
data->finished_update = true;
draw_install(INSTALL_DOWNLOAD);
char * zip_buf = NULL;
@@ -276,7 +277,6 @@ void update_qr(qr_data *data)
free(filename);
free(zip_buf);
data->finished_update = true;
}
}
@@ -297,5 +297,4 @@ bool init_qr(void)
while (!data->finished_update && !data->finished) update_qr(data);
return (bool)data->success;
}
}