aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-11 13:23:37 -0800
committerChris Robinson <[email protected]>2008-01-11 13:23:37 -0800
commitf8089d20262681542dd214da130f4462d6a9eb8b (patch)
tree4f7fe72f3ccedf4b2e603b2b832ba7bd433de48e /Alc
parent40241b4e970c451f37f805c0611e7b9d62b6ba30 (diff)
Don't double-close a handle on error
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index f8cb17f7..926ca354 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -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)
{