[svn-commits] file: branch 1.4 r74082 - /branches/1.4/channels/chan_skinny.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jul 9 10:32:43 CDT 2007
Author: file
Date: Mon Jul 9 10:32:43 2007
New Revision: 74082
URL: http://svn.digium.com/view/asterisk?view=rev&rev=74082
Log:
Only destroy the scheduler context if it was allocated. (issue #10124 reported by gzero)
Modified:
branches/1.4/channels/chan_skinny.c
Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=74082&r1=74081&r2=74082
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Mon Jul 9 10:32:43 2007
@@ -890,7 +890,7 @@
#endif
/* driver scheduler */
-static struct sched_context *sched;
+static struct sched_context *sched = NULL;
static struct io_context *io;
/* Protect the monitoring thread, so only one process can kill or start it, and not
@@ -4800,7 +4800,8 @@
ast_cli_unregister_multiple(cli_skinny, sizeof(cli_skinny) / sizeof(struct ast_cli_entry));
close(skinnysock);
- sched_context_destroy(sched);
+ if (sched)
+ sched_context_destroy(sched);
return 0;
}
More information about the svn-commits
mailing list