Fixed chan_alsa.c unload bug (bug #4019)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5464 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
25c6087b37
commit
bcadec45a6
1 changed files with 2 additions and 2 deletions
|
@ -1077,8 +1077,8 @@ int unload_module()
|
||||||
ast_channel_unregister(&alsa_tech);
|
ast_channel_unregister(&alsa_tech);
|
||||||
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
|
||||||
ast_cli_unregister(myclis + x);
|
ast_cli_unregister(myclis + x);
|
||||||
close(readdev);
|
snd_pcm_close(alsa.icard);
|
||||||
close(writedev);
|
snd_pcm_close(alsa.ocard);
|
||||||
if (sndcmd[0] > 0) {
|
if (sndcmd[0] > 0) {
|
||||||
close(sndcmd[0]);
|
close(sndcmd[0]);
|
||||||
close(sndcmd[1]);
|
close(sndcmd[1]);
|
||||||
|
|
Reference in a new issue