cdrom.c: remove_wait_message() properly

...or a funny intermittent effect of "Waiting for 1 -> 2 -> 1 seconds"
within that window might appear.
This commit is contained in:
Michael Shigorin 2015-02-26 20:06:47 +03:00
parent 98cd251baf
commit f1244e8c76

View File

@ -232,6 +232,7 @@ enum return_type cdrom_prepare(void)
/* refill medias and medias_models;
note that get_medias() leaks memory */
get_medias(CDROM, &medias, &medias_models);
remove_wait_message();
}
if ((i = try_automatic(medias, medias_models)) != -1) {
if (j) {
@ -243,9 +244,6 @@ enum return_type cdrom_prepare(void)
}
}
if (j)
remove_wait_message();
ptr = medias;
while (ptr && *ptr) {
count++;