Merge "chan_mgcp: Don't call close on fd -1." into 11

changes/82/782/1
Joshua Colp 10 years ago committed by Gerrit Code Review
commit aa04d4387a

@ -4944,7 +4944,9 @@ static int unload_module(void)
return -1;
}
close(mgcpsock);
if (mgcpsock > -1) {
close(mgcpsock);
}
ast_rtp_glue_unregister(&mgcp_rtp_glue);
ast_cli_unregister_multiple(cli_mgcp, sizeof(cli_mgcp) / sizeof(struct ast_cli_entry));
ast_sched_context_destroy(sched);

Loading…
Cancel
Save