From 46f24180924edfbf4278b3f85c8f34e42a0bcb1a Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 7 Dec 2007 02:04:23 +0000 Subject: [PATCH] don't blow up on shutdown in -nc mode. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6560 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core.c b/src/switch_core.c index b0668c0501..60535817aa 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -999,7 +999,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void) - if (runtime.console != stdout && runtime.console != stderr) { + if (runtime.console && runtime.console != stdout && runtime.console != stderr) { fclose(runtime.console); runtime.console = NULL; }