Don't double-close a handle on error

This commit is contained in:
Chris Robinson
2008-01-11 13:23:37 -08:00
parent 40241b4e97
commit f8089d2026
-1
View File
@@ -899,7 +899,6 @@ next_card:
}
if (err >= 0 && (err = psnd_ctl_card_info(handle, info)) < 0) {
AL_PRINT("control hardware info (%i): %s\n", card, psnd_strerror(err));
psnd_ctl_close(handle);
}
else if (err >= 0 && card < MAX_DEVICES-1)
{